code cleanup and formatting
[meviz.git] / src / main / java / eu / svjatoslav / meviz / htmlindexer / metadata / Dimension.java
index 7841783..db51f50 100755 (executable)
@@ -1,7 +1,7 @@
 /*
  * Meviz - Various tools collection to work with multimedia.
  * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- * 
+ *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of version 2 of the GNU General Public License
  * as published by the Free Software Foundation.
@@ -53,9 +53,7 @@ public class Dimension implements Serializable, Comparable<Dimension> {
     }
 
     public boolean equals(final Dimension anotherDimension) {
-        if (compareTo(anotherDimension) == 0)
-            return true;
-        return false;
+        return compareTo(anotherDimension) == 0;
     }
 
     public int getArea() {
@@ -74,4 +72,10 @@ public class Dimension implements Serializable, Comparable<Dimension> {
 
         return result;
     }
+
+    @Override
+    public String toString() {
+        return "Dimension [width=" + width + ", height=" + height + "]";
+    }
+
 }