Skip to content

Commit

Permalink
Fix checkstyle complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvest committed Feb 22, 2017
1 parent 3f9a86f commit bf17c3f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -760,9 +760,9 @@ public PrimitiveLongIterator indexQuery( KernelStatement state, NewIndexDescript
state, index, strPred.getFrom(), strPred.isFromInclusive(), strPred.getTo(),
strPred.isToInclusive(), committed );
}
default:
throw new RuntimeException( "Query not supported: " + Arrays.toString( predicates ) );
}

throw new RuntimeException( "Query not supported: " + Arrays.toString( predicates ) );
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,9 @@ public PrimitiveLongIterator query( IndexQuery... predicates )
case rangeString:
IndexQuery.StringRangePredicate sp = (IndexQuery.StringRangePredicate) predicate;
return rangeSeekByString( sp.getFrom(), sp.isFromInclusive(), sp.getTo(), sp.isToInclusive() );
default:
throw new RuntimeException( "Unsupported query: " + Arrays.toString( predicates ) );
}
throw new RuntimeException( "Unsupported query: " + Arrays.toString( predicates ) );
}

private interface StringFilter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ public PrimitiveLongIterator query( IndexQuery... predicates )
case rangeString:
IndexQuery.StringRangePredicate sp = (IndexQuery.StringRangePredicate) predicate;
return rangeSeekByString( sp.getFrom(), sp.isFromInclusive(), sp.getTo(), sp.isToInclusive() );
default:
// todo figure out a more specific exception
throw new RuntimeException( "Index query not supported: " + Arrays.toString( predicates ) );
}

// todo figure out a more specific exception
throw new RuntimeException( "Index query not supported: " + Arrays.toString( predicates ) );
}

public PrimitiveLongIterator seek( Object value )
Expand Down

0 comments on commit bf17c3f

Please sign in to comment.