Skip to content

Commit

Permalink
Remove unsupported static declaration of inner classes
Browse files Browse the repository at this point in the history
JDK 11 does not support static inner classes.
  • Loading branch information
malliaridis committed Nov 13, 2024
1 parent 64625f6 commit 0dac2d1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public String toString() {
}

/** A 'recipe' for computing a feature */
public abstract static class FeatureScorer extends Scorer {
public abstract class FeatureScorer extends Scorer {

protected final String name;
private DocInfo docInfo;
Expand Down Expand Up @@ -342,7 +342,7 @@ public DocIdSetIterator iterator() {
* A <code>FeatureScorer</code> that contains a <code>Scorer</code>, which it delegates to where
* appropriate.
*/
public abstract static class FilterFeatureScorer extends FeatureScorer {
public abstract class FilterFeatureScorer extends FeatureScorer {

protected final Scorer in;

Expand Down Expand Up @@ -380,7 +380,7 @@ public float getMaxScore(int upTo) throws IOException {
* Default FeatureScorer class that returns the score passed in. Can be used as a simple
* ValueFeature, or to return a default scorer in case an underlying feature's scorer is null.
*/
public static class ValueFeatureScorer extends FeatureScorer {
public class ValueFeatureScorer extends FeatureScorer {
float constScore;

public ValueFeatureScorer(FeatureWeight weight, float constScore, DocIdSetIterator itr) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public FeatureScorer scorer(LeafReaderContext context) throws IOException {
return new OriginalScoreScorer(this, originalScorer);
}

public static class OriginalScoreScorer extends FilterFeatureScorer {
public class OriginalScoreScorer extends FilterFeatureScorer {

public OriginalScoreScorer(FeatureWeight weight, Scorer originalScorer) {
super(weight, originalScorer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public FeatureScorer scorer(LeafReaderContext context) throws IOException {
}

/** Scorer for a SolrFeature */
public static class SolrFeatureScorer extends FilterFeatureScorer {
public class SolrFeatureScorer extends FilterFeatureScorer {

public SolrFeatureScorer(FeatureWeight weight, Scorer solrScorer) {
super(weight, solrScorer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ private void updateForFire(WatchedEvent event) {
}
}

private static class TestZKDatabase extends ZKDatabase {
private class TestZKDatabase extends ZKDatabase {

private final WatchLimiter limiter;

Expand Down

0 comments on commit 0dac2d1

Please sign in to comment.