mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
No effective code change: Fixwarnings, overrides, generics etc. (#1285)
This commit is contained in:
1 parent
cdbbd749a3
commit
0e3f47ee82
48 files changed
+89
-62
No files matched your search
@@ -15,6 +15,7 @@ class BasicProfileLocation implements ProfileLocation {
|
||||
this.shortDescription = shortDesc(location);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return shortDescription;
|
||||
}
|
||||
@@ -24,6 +25,7 @@ class BasicProfileLocation implements ProfileLocation {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public String obtain() {
|
||||
return location;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ class DProfileLocation implements ProfileLocation {
|
||||
this.lineNumber = lineNumber;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "location: " + location;
|
||||
}
|
||||
@@ -37,6 +38,7 @@ class DProfileLocation implements ProfileLocation {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public String obtain() {
|
||||
// atomic assignment so happy with this
|
||||
if (location == null) {
|
||||
|
||||
@@ -29,6 +29,7 @@ class DTimeMetricStats implements TimedMetricStats {
|
||||
this.max = max != Long.MIN_VALUE ? max : (count < 1 ? 0 : Math.round(total / count));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (location != null) {
|
||||
@@ -43,6 +44,7 @@ class DTimeMetricStats implements TimedMetricStats {
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setLocation(String location) {
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ class DTimedMetric implements TimedMetric {
|
||||
}
|
||||
}
|
||||
|
||||
// @Override
|
||||
@Override
|
||||
public DTimeMetricStats collect(boolean reset) {
|
||||
boolean empty = count.sum() == 0;
|
||||
if (empty) {
|
||||
|
||||
Reference in new issue
Block a user