Skip to content

Commit

Permalink
[ issue #12 ] some code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
agazzarini committed Apr 16, 2015
1 parent 711916b commit fe73c23
Show file tree
Hide file tree
Showing 8 changed files with 395 additions and 464 deletions.
2 changes: 1 addition & 1 deletion solrdf/src/main/java/org/gazzax/labs/solrdf/NTriples.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import com.hp.hpl.jena.rdf.model.AnonId;

/**
* Booch utility for parsing RDF resources.
* Booch utility for parsing NTriples.
*
* @author Andrea Gazzarini
* @since 1.0
Expand Down
7 changes: 7 additions & 0 deletions solrdf/src/main/java/org/gazzax/labs/solrdf/Strings.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ public static boolean isNullOrEmpty(final String value) {
return value == null || value.trim().length() == 0;
}

/**
* Removes unnecessary decimal zeros from a numeric string.
* As an extreme case, where all decimals are 0, it ends with an integer string (e.g 10.000 = 10)
*
* @param numericStringValue the numeric string.
* @return a new string with unnecessary decimal zeros removed.
*/
public static String round(final String numericStringValue) {
final int indexOfDot = numericStringValue.indexOf(".");
if (indexOfDot == -1) {
Expand Down
121 changes: 0 additions & 121 deletions solrdf/src/main/java/org/gazzax/labs/solrdf/Utility.java

This file was deleted.

Loading

0 comments on commit fe73c23

Please sign in to comment.