You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@any23.apache.org by an...@apache.org on 2015/10/29 23:38:56 UTC

[2/4] any23 git commit: Reverted two small changes automatically introduced by my the java style settings of my IDE back to their original state.

Reverted two small changes automatically introduced by my the java style
settings of my IDE back to their original state. 

Project: http://git-wip-us.apache.org/repos/asf/any23/repo
Commit: http://git-wip-us.apache.org/repos/asf/any23/commit/a8f1bd0a
Tree: http://git-wip-us.apache.org/repos/asf/any23/tree/a8f1bd0a
Diff: http://git-wip-us.apache.org/repos/asf/any23/diff/a8f1bd0a

Branch: refs/heads/master
Commit: a8f1bd0a3d8b5ea368e25529bcb959d79946c969
Parents: 9afa87d
Author: Antoni Mylka <an...@quantinum.com>
Authored: Thu Oct 29 15:17:29 2015 +0100
Committer: Antoni Mylka <an...@quantinum.com>
Committed: Thu Oct 29 15:17:29 2015 +0100

----------------------------------------------------------------------
 .../org/apache/any23/extractor/microdata/ItemPropValue.java  | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/any23/blob/a8f1bd0a/core/src/main/java/org/apache/any23/extractor/microdata/ItemPropValue.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/any23/extractor/microdata/ItemPropValue.java b/core/src/main/java/org/apache/any23/extractor/microdata/ItemPropValue.java
index a74849d..5ba34cd 100644
--- a/core/src/main/java/org/apache/any23/extractor/microdata/ItemPropValue.java
+++ b/core/src/main/java/org/apache/any23/extractor/microdata/ItemPropValue.java
@@ -151,9 +151,7 @@ public class ItemPropValue {
      * @return <code>true</code> if type is an integer.
      */
     public boolean isInteger() {
-        if(type != Type.Plain) {
-            return false;
-        }
+        if(type != Type.Plain) return false;
          try {
              Integer.parseInt((String) content);
              return true;
@@ -166,9 +164,7 @@ public class ItemPropValue {
      * @return <code>true</code> if type is a float.
      */
      public boolean isFloat() {
-         if(type != Type.Plain) {
-            return false;
-        }
+         if(type != Type.Plain) return false;
          try {
              Float.parseFloat((String) content);
              return true;