projects
/
meviz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed potential null pointer error
[meviz.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
meviz
/
htmlindexer
/
metadata
/
Dimension.java
diff --git
a/src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/Dimension.java
b/src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/Dimension.java
index
7841783
..
b25c6b7
100755
(executable)
--- a/
src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/Dimension.java
+++ b/
src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/Dimension.java
@@
-1,11
+1,11
@@
/*
* Meviz - Various tools collection to work with multimedia.
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
+ * Copyright (C) 2012
-- 2019
, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ *
* This program is free software; you can redistribute it and/or
* 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.
-
*/
+ * modify it under the terms of version
3 of the GNU Lesser
General Public License
+ *
or later
as published by the Free Software Foundation.
+*/
package eu.svjatoslav.meviz.htmlindexer.metadata;
package eu.svjatoslav.meviz.htmlindexer.metadata;
@@
-22,7
+22,7
@@
public class Dimension implements Serializable, Comparable<Dimension> {
public int width;
public int height;
public int width;
public int height;
- p
ublic
Dimension() {
+ p
rivate
Dimension() {
width = 0;
height = 0;
}
width = 0;
height = 0;
}
@@
-53,9
+53,7
@@
public class Dimension implements Serializable, Comparable<Dimension> {
}
public boolean equals(final Dimension anotherDimension) {
}
public boolean equals(final Dimension anotherDimension) {
- if (compareTo(anotherDimension) == 0)
- return true;
- return false;
+ return compareTo(anotherDimension) == 0;
}
public int getArea() {
}
public int getArea() {
@@
-74,4
+72,10
@@
public class Dimension implements Serializable, Comparable<Dimension> {
return result;
}
return result;
}
+
+ @Override
+ public String toString() {
+ return "Dimension [width=" + width + ", height=" + height + "]";
+ }
+
}
}