File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
objectbox-java/src/main/java/io/objectbox Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -666,7 +666,7 @@ public int getEntityId() {
666
666
@ Internal
667
667
public int getId () {
668
668
if (this .id <= 0 ) {
669
- throw new IllegalStateException ("Illegal property ID " + id + " for " + toString () );
669
+ throw new IllegalStateException ("Illegal property ID " + id + " for " + this );
670
670
}
671
671
return id ;
672
672
}
@@ -677,10 +677,10 @@ boolean isIdVerified() {
677
677
678
678
void verifyId (int idInDb ) {
679
679
if (this .id <= 0 ) {
680
- throw new IllegalStateException ("Illegal property ID " + id + " for " + toString () );
680
+ throw new IllegalStateException ("Illegal property ID " + id + " for " + this );
681
681
}
682
682
if (this .id != idInDb ) {
683
- throw new DbException (toString () + " does not match ID in DB: " + idInDb );
683
+ throw new DbException (this + " does not match ID in DB: " + idInDb );
684
684
}
685
685
idVerified = true ;
686
686
}
You can’t perform that action at this time.
0 commit comments