cpoerschke commented on code in PR #922:
URL: https://github.com/apache/solr/pull/922#discussion_r908710916
##########
solr/core/src/test/org/apache/solr/cloud/TestTolerantUpdateProcessorRandomCloud.java:
##########
@@ -262,9 +262,7 @@ public void testRandomUpdates() throws Exception {
}
}
assertEquals(
- "expected error count sanity check: " + req.toString(),
- expectedErrorsCount,
- expectedErrors.size());
+ "expected error count sanity check: " + req, expectedErrorsCount,
expectedErrors.size());
Review Comment:
```suggestion
"expected error count check: " + req, expectedErrorsCount,
expectedErrors.size());
```
##########
solr/core/src/test/org/apache/solr/search/CurrencyRangeFacetCloudTest.java:
##########
@@ -538,7 +538,7 @@ public void testJsonRangeFacetWithSubFacet() throws
Exception {
} catch (AssertionError | RuntimeException ae) {
throw new AssertionError(
- solrQuery.toString() + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
+ solrQuery + " -> " + rsp.toString() + " ===> " + ae.getMessage(),
ae);
Review Comment:
```suggestion
solrQuery + " -> " + rsp + " ===> " + ae.getMessage(), ae);
```
##########
solr/core/src/test/org/apache/solr/search/facet/RangeFacetCloudTest.java:
##########
@@ -173,7 +173,7 @@ public void testInclude_Lower() throws Exception {
} catch (AssertionError | RuntimeException ae) {
throw new AssertionError(
- solrQuery.toString() + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
+ solrQuery + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
Review Comment:
```suggestion
solrQuery + " -> " + rsp + " ===> " + ae.getMessage(), ae);
```
##########
solr/core/src/test/org/apache/solr/search/facet/RangeFacetCloudTest.java:
##########
@@ -220,7 +220,7 @@ public void testInclude_Lower_Gap2() throws Exception {
} catch (AssertionError | RuntimeException ae) {
throw new AssertionError(
- solrQuery.toString() + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
+ solrQuery + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
Review Comment:
```suggestion
solrQuery + " -> " + rsp + " ===> " + ae.getMessage(), ae);
```
##########
solr/core/src/test/org/apache/solr/search/CurrencyRangeFacetCloudTest.java:
##########
@@ -181,7 +181,7 @@ public void testSimpleRangeFacetsOfSymmetricRates() throws
Exception {
}
} catch (AssertionError | RuntimeException ae) {
throw new AssertionError(
- solrQuery.toString() + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
+ solrQuery + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
Review Comment:
```suggestion
solrQuery + " -> " + rsp + " ===> " + ae.getMessage(), ae);
```
##########
solr/core/src/test/org/apache/solr/search/ReturnFieldsTest.java:
##########
@@ -435,7 +435,7 @@ public void testWhiteboxSolrDocumentConversion() {
new SolrReturnFields(req("fl", "id,xxx:[geo
f=store],uniq,foo_2_s1,subword")),
new SolrReturnFields(req("fl",
"id,xxx:subword,uniq,yyy:foo_2_s1,[geo f=store]")))) {
docOut = convertLuceneDocToSolrDoc(docIn, schema, rf);
- final String debug = rf.toString() + " => " + docOut.toString();
+ final String debug = rf + " => " + docOut.toString();
Review Comment:
```suggestion
final String debug = rf + " => " + docOut;
```
##########
solr/core/src/test/org/apache/solr/search/CurrencyRangeFacetCloudTest.java:
##########
@@ -365,7 +365,7 @@ public void testJsonFacetRangeOfAsymmetricRates() throws
Exception {
}
} catch (AssertionError | RuntimeException ae) {
throw new AssertionError(
- solrQuery.toString() + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
+ solrQuery + " -> " + rsp.toString() + " ===> " + ae.getMessage(),
ae);
Review Comment:
```suggestion
solrQuery + " -> " + rsp + " ===> " + ae.getMessage(), ae);
```
##########
solr/core/src/test/org/apache/solr/search/CurrencyRangeFacetCloudTest.java:
##########
@@ -306,7 +306,7 @@ public void testFacetRangeOfAsymmetricRates() throws
Exception {
}
} catch (AssertionError | RuntimeException ae) {
throw new AssertionError(
- solrQuery.toString() + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
+ solrQuery + " -> " + rsp.toString() + " ===> " + ae.getMessage(),
ae);
Review Comment:
```suggestion
solrQuery + " -> " + rsp + " ===> " + ae.getMessage(), ae);
```
##########
solr/core/src/test/org/apache/solr/search/CurrencyRangeFacetCloudTest.java:
##########
@@ -615,7 +615,7 @@ public void testJsonRangeFacetAsSubFacet() throws Exception
{
}
} catch (AssertionError | RuntimeException ae) {
throw new AssertionError(
- solrQuery.toString() + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
+ solrQuery + " -> " + rsp.toString() + " ===> " + ae.getMessage(),
ae);
Review Comment:
```suggestion
solrQuery + " -> " + rsp + " ===> " + ae.getMessage(), ae);
```
##########
solr/core/src/test/org/apache/solr/search/facet/RangeFacetCloudTest.java:
##########
@@ -267,7 +267,7 @@ public void testInclude_Lower_Gap2_hardend() throws
Exception {
} catch (AssertionError | RuntimeException ae) {
throw new AssertionError(
- solrQuery.toString() + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
+ solrQuery + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
Review Comment:
```suggestion
solrQuery + " -> " + rsp + " ===> " + ae.getMessage(), ae);
```
##########
solr/core/src/test/org/apache/solr/search/facet/RangeFacetCloudTest.java:
##########
@@ -327,7 +327,7 @@ public void testInclude_Upper() throws Exception {
} catch (AssertionError | RuntimeException ae) {
throw new AssertionError(
- solrQuery.toString() + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
+ solrQuery + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
Review Comment:
```suggestion
solrQuery + " -> " + rsp + " ===> " + ae.getMessage(), ae);
```
##########
solr/core/src/test/org/apache/solr/cloud/api/collections/PurgeGraphTest.java:
##########
@@ -46,9 +46,7 @@ public void setUpRepo() throws Exception {
repository = new LocalFileSystemRepository();
baseLocationUri =
repository.createDirectoryURI(
- createTempDir("backup_files_" + UUID.randomUUID().toString())
- .toAbsolutePath()
- .toString());
+ createTempDir("backup_files_" +
UUID.randomUUID()).toAbsolutePath().toString());
Review Comment:
Did you mean to remove the `toString` here?
```suggestion
createTempDir("backup_files_" +
UUID.randomUUID()).toAbsolutePath());
```
##########
solr/core/src/test/org/apache/solr/search/ReturnFieldsTest.java:
##########
@@ -461,7 +461,7 @@ public void testWhiteboxSolrDocumentConversion() {
new SolrReturnFields(req("fl", allFieldNames +
",bogus1,bogus2,bogus3")))) {
docOut = convertLuceneDocToSolrDoc(docIn, schema, rf);
- final String debug = rf.toString() + " => " + docOut.toString();
+ final String debug = rf + " => " + docOut.toString();
Review Comment:
```suggestion
final String debug = rf + " => " + docOut;
```
##########
solr/core/src/test/org/apache/solr/search/CurrencyRangeFacetCloudTest.java:
##########
@@ -239,7 +239,7 @@ public void testSimpleRangeFacetsOfSymmetricRates() throws
Exception {
}
} catch (AssertionError | RuntimeException ae) {
throw new AssertionError(
- solrQuery.toString() + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
+ solrQuery + " -> " + rsp.toString() + " ===> " +
ae.getMessage(), ae);
Review Comment:
```suggestion
solrQuery + " -> " + rsp + " ===> " + ae.getMessage(), ae);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]