Skip to content

Commit

Permalink
Use <> instead of repeating type params on the same line of code
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Jan 11, 2017
1 parent 5fee772 commit 3c89402
Show file tree
Hide file tree
Showing 50 changed files with 103 additions and 103 deletions.
2 changes: 1 addition & 1 deletion jena-arq/src-examples/arq/examples/AlgebraExec.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static void main (String[] argv)
{
// -------- Or make ResultSet from it (but not both - reading an
// iterator consumes the current solution)
List<String> varNames = new ArrayList<String>() ;
List<String> varNames = new ArrayList<>() ;
varNames.add("x") ;
varNames.add("z") ;
ResultSet rs = new ResultSetStream(varNames, m, qIter);
Expand Down
6 changes: 3 additions & 3 deletions jena-arq/src-examples/arq/examples/ExampleDBpedia3.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ static public void main(String... argv) {

Query query = QueryFactory.create(queryString) ;
try(QueryExecution qexec = QueryExecutionFactory.create(query, ModelFactory.createDefaultModel())) {
Map<String, Map<String,List<String>>> serviceParams = new HashMap<String, Map<String,List<String>>>() ;
Map<String,List<String>> params = new HashMap<String,List<String>>() ;
List<String> values = new ArrayList<String>() ;
Map<String, Map<String,List<String>>> serviceParams = new HashMap<>() ;
Map<String,List<String>> params = new HashMap<>() ;
List<String> values = new ArrayList<>() ;
values.add("2000") ;
params.put("timeout", values) ;
serviceParams.put(serviceURI, params) ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private QueryIterator execAllNodes(Var subjVar, Node nodeLocalname, Binding inp
}

//Set bindings = new HashSet() ; // Use a Set if you want unique results.
List<Binding> bindings = new ArrayList<Binding>() ; // Use a list if you want counting results.
List<Binding> bindings = new ArrayList<>() ; // Use a list if you want counting results.
Graph graph = execCxt.getActiveGraph() ;

ExtendedIterator<Triple>iter = graph.find(Node.ANY, Node.ANY, Node.ANY) ;
Expand Down
2 changes: 1 addition & 1 deletion jena-arq/src-examples/arq/examples/riot/ExRIOT_6.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void main(String... argv) {
// You can optionally supply a buffer size here for the
// PipedRDFIterator, see the documentation for details about recommended
// buffer sizes
PipedRDFIterator<Triple> iter = new PipedRDFIterator<Triple>();
PipedRDFIterator<Triple> iter = new PipedRDFIterator<>();
final PipedRDFStream<Triple> inputStream = new PipedTriplesStream(iter);

// PipedRDFStream and PipedRDFIterator need to be on different threads
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ private int jj_ntk() {
return (jj_ntk = jj_nt.kind);
}

private java.util.List<int[]> jj_expentries = new java.util.ArrayList<int[]>();
private java.util.List<int[]> jj_expentries = new java.util.ArrayList<>();
private int[] jj_expentry;
private int jj_kind = -1;

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3c89402

Please sign in to comment.