Skip to content

Commit c74a2b3

Browse files
deepanshu-Android (Google) Code Review
authored andcommitted
Merge "Minor style changes." into lmp-dev
2 parents 7caa51e + 3c8140a commit c74a2b3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public String getString(int index) {
159159
return null;
160160
}
161161
// As unfortunate as it is, it's possible to use enums with all attribute formats,
162-
// not just integers/enums. So, we need to search the enums always. In case,
162+
// not just integers/enums. So, we need to search the enums always. In case
163163
// enums are used, the returned value is an integer.
164164
Integer v = resolveEnumAttribute(index);
165165
return v == null ? mResourceData[index].getValue() : String.valueOf((int) v);
@@ -197,7 +197,7 @@ public int getInt(int index, int defValue) {
197197
}
198198
} catch (NumberFormatException e) {
199199
Bridge.getLog().warning(LayoutLog.TAG_RESOURCES_FORMAT,
200-
String.format("\"%s\" in attribute \"%2$s\" is not a valid integer",
200+
String.format("\"%1$s\" in attribute \"%2$s\" is not a valid integer",
201201
s, mNames[index]),
202202
null);
203203
return defValue;
@@ -221,7 +221,7 @@ public float getFloat(int index, float defValue) {
221221
}
222222
} catch (NumberFormatException e) {
223223
Bridge.getLog().warning(LayoutLog.TAG_RESOURCES_FORMAT,
224-
String.format("\"%s\" in attribute \"%2$s\" cannot be converted to float.",
224+
String.format("\"%1$s\" in attribute \"%2$s\" cannot be converted to float.",
225225
s, mNames[index]),
226226
null);
227227
}

0 commit comments

Comments
 (0)