Skip to content

Commit

Permalink
Fix String.format issue in LwM2mAttributeModel.getApplicabilityError()
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Jun 3, 2022
1 parent 7bf2d77 commit 7703ef4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public boolean canBeAssignedTo(AssignationLevel assignation) {
*/
public String getApplicabilityError(LwM2mPath path, LwM2mModel model) {
if (!canBeAssignedTo(AssignationLevel.fromPath(path))) {
return String.format("%s attribute is only applicable to %s, and so can not be assigned to %", getName(),
return String.format("%s attribute is only applicable to %s, and so can not be assigned to %s", getName(),
getAssignationLevels(), path);
}
return null;
Expand Down

0 comments on commit 7703ef4

Please sign in to comment.