Skip to content

Commit

Permalink
use constants instead of hardcoded strings
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Nov 16, 2017
1 parent 13a6968 commit f37188d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/de/metas/ui/web/view/ViewRow.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public DocumentId getRowId()
// NOTE: we have to do this because usually, the root row can have the same ID as one of the included rows,
// because the root/aggregated rows are build on demand and they don't really exist in database.
// Also see https://github.com/metasfresh/metasfresh-webui-frontend/issues/835#issuecomment-307783959
_rowIdEffective = DocumentId.ofString("D" + rowId.toJson());
_rowIdEffective = DocumentId.ofString(DocumentId.DOCUMENT_ID_PREFIX + rowId.toJson());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
// JSON
public abstract class DocumentId implements Serializable
{
private static final transient String DOCUMENT_ID_PREFIX = "D";
public static final transient String DOCUMENT_ID_PREFIX = "D";

private static final transient int NEW_ID = -1;

Expand Down

0 comments on commit f37188d

Please sign in to comment.