[bluecove] r3009 committed - correction to style

1 view
Skip to first unread message

codesite...@google.com

unread,
Aug 13, 2009, 12:03:39 PM8/13/09
to bluecove...@googlegroups.com
Revision: 3009
Author: skarzhevskyy
Date: Thu Aug 13 09:00:39 2009
Log: correction to style
http://code.google.com/p/bluecove/source/detail?r=3009

Modified:

/trunk/bluecove-tests/src/test/java/com/intel/bluetooth/obex/BlueCoveInternals.java

=======================================
---
/trunk/bluecove-tests/src/test/java/com/intel/bluetooth/obex/BlueCoveInternals.java
Fri Mar 13 10:16:12 2009
+++
/trunk/bluecove-tests/src/test/java/com/intel/bluetooth/obex/BlueCoveInternals.java
Thu Aug 13 09:00:39 2009
@@ -32,47 +32,50 @@
*/
public abstract class BlueCoveInternals {

- public static boolean isShortRequestPhase() {
- return OBEXClientOperation.isShortRequestPhase();
- }
-
- public static int readServerErrorCount() {
- synchronized (OBEXServerSessionImpl.class) {
- int count = OBEXServerSessionImpl.errorCount;
- OBEXServerSessionImpl.errorCount = 0;
- return count;
- }
-
- }
-
- /**
- * @return the packetsCountWrite
- */
- public static int getPacketsCountWrite(Connection c) {
- if (c instanceof OBEXSessionBase) {
- return ((OBEXSessionBase) c).getPacketsCountWrite();
- }
- throw new IllegalArgumentException("Not a BlueCove OBEX Session " +
c.getClass().getName());
- }
-
- /**
- * @return the packetsCountRead
- */
- public static int getPacketsCountRead(Connection c) {
- if (c instanceof OBEXSessionBase) {
- return ((OBEXSessionBase) c).getPacketsCountRead();
- }
- throw new IllegalArgumentException("Not a BlueCove OBEX Session " +
c.getClass().getName());
- }
-
- /**
- *
- * @return the mtu
- */
- public static int getPacketSize(Connection c) {
- if (c instanceof OBEXSessionBase) {
- return ((OBEXSessionBase) c).getPacketSize();
- }
- throw new IllegalArgumentException("Not a BlueCove OBEX Session " +
c.getClass().getName());
- }
-}
+ public static boolean isShortRequestPhase() {
+ return OBEXClientOperation.isShortRequestPhase();
+ }
+
+ public static int readServerErrorCount() {
+ synchronized (OBEXServerSessionImpl.class) {
+ int count = OBEXServerSessionImpl.errorCount;
+ OBEXServerSessionImpl.errorCount = 0;
+ return count;
+ }
+
+ }
+
+ /**
+ * @return the packetsCountWrite
+ */
+ public static int getPacketsCountWrite(Connection c) {
+ if (c instanceof OBEXSessionBase) {
+ return ((OBEXSessionBase) c).getPacketsCountWrite();
+ } else {
+ throw new IllegalArgumentException("Not a BlueCove OBEX
Session " + c.getClass().getName());
+ }
+ }
+
+ /**
+ * @return the packetsCountRead
+ */
+ public static int getPacketsCountRead(Connection c) {
+ if (c instanceof OBEXSessionBase) {
+ return ((OBEXSessionBase) c).getPacketsCountRead();
+ } else {
+ throw new IllegalArgumentException("Not a BlueCove OBEX
Session " + c.getClass().getName());
+ }
+ }
+
+ /**
+ *
+ * @return the mtu
+ */
+ public static int getPacketSize(Connection c) {
+ if (c instanceof OBEXSessionBase) {
+ return ((OBEXSessionBase) c).getPacketSize();
+ } else {
+ throw new IllegalArgumentException("Not a BlueCove OBEX
Session " + c.getClass().getName());
+ }
+ }
+}

Reply all
Reply to author
Forward
0 new messages