Skip to content

Commit 3c8140a

Browse files
committed
Minor style changes.
Addressing code review comments on previous change: 1718042 Change-Id: I2c9e0ce35e755c23d8292749828d15a87109d6dc
1 parent 1718042 commit 3c8140a

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)