Skip to content

Commit 8b15135

Browse files
committed
Remove unnecessary parantheses
1 parent a7f35f2 commit 8b15135

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/usb4java/javax/descriptors/SimpleUsbConfigurationDescriptor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ public static String dump(final UsbConfigurationDescriptor descriptor)
198198
descriptor.bConfigurationValue() & 0xff,
199199
descriptor.iConfiguration() & 0xff,
200200
String.format("0x%02x", descriptor.bmAttributes() & 0xff),
201-
((descriptor.bmAttributes() & 64) == 0) ? ("(Bus Powered)")
202-
: ("Self Powered"),
203-
((descriptor.bmAttributes() & 32) == 0) ? ("")
201+
((descriptor.bmAttributes() & 64) == 0) ? "(Bus Powered)"
202+
: "Self Powered",
203+
((descriptor.bmAttributes() & 32) == 0) ? ""
204204
: String.format(" Remote Wakeup%n"),
205205
(descriptor.bMaxPower() & 0xff) * 2);
206206
}

0 commit comments

Comments
 (0)