Revision: 1831
Author: [email protected]
Date: Tue Feb 2 03:55:34 2010
Log: Fix findBugs issue 'dead store' because of double assignment.
http://code.google.com/p/simal/source/detail?r=1831
Modified:
/trunk/uk.ac.osswatch.simal.core/src/main/java/uk/ac/osswatch/simal/service/jena/JenaProjectService.java
=======================================
---
/trunk/uk.ac.osswatch.simal.core/src/main/java/uk/ac/osswatch/simal/service/jena/JenaProjectService.java
Fri Nov 27 04:06:05 2009
+++
/trunk/uk.ac.osswatch.simal.core/src/main/java/uk/ac/osswatch/simal/service/jena/JenaProjectService.java
Tue Feb 2 03:55:34 2010
@@ -402,7 +402,6 @@
}
public Set<IProject> filterByName(String filter) throws
SimalRepositoryException {
- Set<IProject> projects = new HashSet<IProject>();
String queryStr = "PREFIX xsd: <" +
AbstractSimalRepository.XSD_NAMESPACE_URI
+ "> " + "PREFIX doap: <" + RDFUtils.DOAP_NS + "> "
+ "PREFIX rdf: <" + AbstractSimalRepository.RDF_NAMESPACE_URI
+ ">"
@@ -410,7 +409,7 @@
+ "SELECT DISTINCT ?project WHERE { ?project a doap:Project;"
+ " doap:name ?name . "
+ " FILTER regex(?name, \"" + convertFilterToRE(filter) + "\",
\"i\") }";
- projects = findProjectsBySPARQL(queryStr);
+ Set<IProject> projects = findProjectsBySPARQL(queryStr);
return projects;
}
--
You received this message because you are subscribed to the Google Groups "Simal
Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simal-commits?hl=en.