До конца раздачи бесплатных лицензий осталось 00:59:58. Забрать!
V6006. The object was created but it is not being used. The 'throw' keyword could be missing.
V6006 The object was created but it is not being used. The 'throw' keyword could be missing. AzureStorageSettings.java 352
private String getProperty(String propertyName) {
final String[] settings = getConnectString().split(";");
for (int i = 0; i < settings.length; i++) {
String setting = settings[i].trim();
if (setting.length() > 0) {
final int idx = setting.indexOf('=');
if (idx == -1 || idx == 0 || idx == settings[i].length() - 1) {
new IllegalArgumentException("Invalid connection string: " // <=
+ getConnectString());
}
if (propertyName.equals(setting.substring(0, idx))) {
return setting.substring(idx + 1);
}
}
}
return null;
}
V6006 The object was created but it is not being used. The 'throw' keyword could be missing. JdbcConnection.java 93
@Override
public void setAutoCommit(boolean autoCommit) throws SQLException {
checkOpen();
if (autoCommit == false) {
new SQLFeatureNotSupportedException("Non auto-commit is not supported");
}
}
V6006 The object was created but it is not being used. The 'throw' keyword could be missing. ShardSplitTest.java 773
private void doSplitShardWithRule(SolrIndexSplitter.SplitMethod splitMethod)
throws Exception {
....
try {
ZkStateReader.from(cloudClient)
.waitForState(collectionName, 30,
TimeUnit.SECONDS,
SolrCloudTestCase.activeClusterShape(1, 2));
} catch (TimeoutException e) {
new RuntimeException("Timeout waiting for 1shards and 2 replicas.", e);
}
....
}
V6006 The object was created but it is not being used. The 'throw' keyword could be missing: 'new MemoryAccessException("Cyclic Access");'. BitMappedSubMemoryBlock.java(99)
public void putByte(long offsetInMemBlock, byte b)
throws MemoryAccessException, IOException {
long offsetInSubBlock = offsetInMemBlock - subBlockOffset;
try {
if (ioPending) {
new MemoryAccessException("Cyclic Access"); // <=
}
ioPending = true;
doPutByte(mappedAddress.addNoWrap(offsetInSubBlock / 8),
(int) (offsetInSubBlock % 8), b);
}
catch (AddressOverflowException e) {
new MemoryAccessException("No memory at address"); // <=
}
finally {
ioPending = false;
}
}
Similar errors can be found in some other places:
V6006 The object was created but it is not being used. The 'throw' keyword could be missing. JdbcConnection.java(88)
@Override
public void setAutoCommit(boolean autoCommit) throws SQLException {
checkOpen();
if (!autoCommit) {
new SQLFeatureNotSupportedException(....);
}
}