Skip to content

Commit 247adb8

Browse files
committed
Updated formatting
1 parent f1aaaa9 commit 247adb8

1 file changed

Lines changed: 34 additions & 34 deletions

File tree

  • dbus-java/src/main/java/org/freedesktop/dbus/messages

dbus-java/src/main/java/org/freedesktop/dbus/messages/Message.java

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public class Message {
9090

9191
/**
9292
* Returns the name of the given header field.
93-
*
93+
*
9494
* @param field field
9595
* @return string
9696
*/
@@ -119,7 +119,7 @@ public static String getHeaderFieldName(byte field) {
119119

120120
/**
121121
* Create a message; only to be called by sub-classes.
122-
*
122+
*
123123
* @param endian The endianness to create the message.
124124
* @param _type The message type.
125125
* @param _flags Any message flags.
@@ -153,7 +153,7 @@ protected Message() {
153153

154154
/**
155155
* Create a message from wire-format data.
156-
*
156+
*
157157
* @param _msg D-Bus serialized data of type yyyuu
158158
* @param _headers D-Bus serialized data of type a(yv)
159159
* @param _body D-Bus serialized data of the signature defined in headers.
@@ -220,7 +220,7 @@ private void preallocate(int num) {
220220

221221
/**
222222
* Ensures there are enough free buffers.
223-
*
223+
*
224224
* @param num number of free buffers to create.
225225
*/
226226
private void ensureBuffers(int num) {
@@ -240,7 +240,7 @@ private void ensureBuffers(int num) {
240240

241241
/**
242242
* Appends a buffer to the buffer list.
243-
*
243+
*
244244
* @param buf buffer byte array
245245
*/
246246
protected void appendBytes(byte[] buf) {
@@ -270,7 +270,7 @@ protected void appendBytes(byte[] buf) {
270270

271271
/**
272272
* Appends a byte to the buffer list.
273-
*
273+
*
274274
* @param b byte
275275
*/
276276
protected void appendByte(byte b) {
@@ -294,7 +294,7 @@ protected void appendByte(byte b) {
294294

295295
/**
296296
* Demarshalls an integer of a given width from a buffer. Endianness is determined from the format of the message.
297-
*
297+
*
298298
* @param buf The buffer to demarshall from.
299299
* @param ofs The offset to demarshall from.
300300
* @param width The byte-width of the int.
@@ -307,7 +307,7 @@ public long demarshallint(byte[] buf, int ofs, int width) {
307307

308308
/**
309309
* Demarshalls an integer of a given width from a buffer.
310-
*
310+
*
311311
* @param buf The buffer to demarshall from.
312312
* @param ofs The offset to demarshall from.
313313
* @param endian The endianness to use in demarshalling.
@@ -321,7 +321,7 @@ public static long demarshallint(byte[] buf, int ofs, byte endian, int width) {
321321

322322
/**
323323
* Demarshalls an integer of a given width from a buffer using big-endian format.
324-
*
324+
*
325325
* @param buf The buffer to demarshall from.
326326
* @param ofs The offset to demarshall from.
327327
* @param width The byte-width of the int.
@@ -338,7 +338,7 @@ public static long demarshallintBig(byte[] buf, int ofs, int width) {
338338

339339
/**
340340
* Demarshalls an integer of a given width from a buffer using little-endian format.
341-
*
341+
*
342342
* @param buf The buffer to demarshall from.
343343
* @param ofs The offset to demarshall from.
344344
* @param width The byte-width of the int.
@@ -356,7 +356,7 @@ public static long demarshallintLittle(byte[] buf, int ofs, int width) {
356356

357357
/**
358358
* Marshalls an integer of a given width and appends it to the message. Endianness is determined from the message.
359-
*
359+
*
360360
* @param l The integer to marshall.
361361
* @param width The byte-width of the int.
362362
*/
@@ -368,7 +368,7 @@ public void appendint(long l, int width) {
368368

369369
/**
370370
* Marshalls an integer of a given width into a buffer. Endianness is determined from the message.
371-
*
371+
*
372372
* @param l The integer to marshall.
373373
* @param buf The buffer to marshall to.
374374
* @param ofs The offset to marshall to.
@@ -386,7 +386,7 @@ public void marshallint(long l, byte[] buf, int ofs, int width) {
386386

387387
/**
388388
* Marshalls an integer of a given width into a buffer using big-endian format.
389-
*
389+
*
390390
* @param l The integer to marshall.
391391
* @param buf The buffer to marshall to.
392392
* @param ofs The offset to marshall to.
@@ -401,7 +401,7 @@ public static void marshallintBig(long l, byte[] buf, int ofs, int width) {
401401

402402
/**
403403
* Marshalls an integer of a given width into a buffer using little-endian format.
404-
*
404+
*
405405
* @param l The integer to marshall.
406406
* @param buf The buffer to demarshall to.
407407
* @param ofs The offset to demarshall to.
@@ -492,7 +492,7 @@ public String toString() {
492492

493493
/**
494494
* Returns the value of the header field of a given field.
495-
*
495+
*
496496
* @param _type The field to return.
497497
* @return The value of the field or null if unset.
498498
*/
@@ -503,7 +503,7 @@ public Object getHeader(byte _type) {
503503
/**
504504
* Appends a value to the message. The type of the value is read from a D-Bus signature and used to marshall the
505505
* value.
506-
*
506+
*
507507
* @param sigb A buffer of the D-Bus signature.
508508
* @param sigofs The offset into the signature corresponding to this value.
509509
* @param data The value to marshall.
@@ -759,7 +759,7 @@ private int appendone(byte[] sigb, int sigofs, Object data) throws DBusException
759759

760760
/**
761761
* Pad the message to the proper alignment for the given type.
762-
*
762+
*
763763
* @param _type type
764764
*/
765765
public void pad(byte _type) {
@@ -783,7 +783,7 @@ public void pad(byte _type) {
783783

784784
/**
785785
* Return the alignment for a given type.
786-
*
786+
*
787787
* @param type type
788788
* @return int
789789
*/
@@ -825,7 +825,7 @@ public static int getAlignment(byte type) {
825825

826826
/**
827827
* Append a series of values to the message.
828-
*
828+
*
829829
* @param sig The signature(s) of the value(s).
830830
* @param data The value(s).
831831
*
@@ -843,7 +843,7 @@ public void append(String sig, Object... data) throws DBusException {
843843

844844
/**
845845
* Align a counter to the given type.
846-
*
846+
*
847847
* @param _current The current counter.
848848
* @param _type The type to align to.
849849
* @return The new, aligned, counter.
@@ -859,7 +859,7 @@ public int align(int _current, byte _type) {
859859

860860
/**
861861
* Demarshall one value from a buffer.
862-
*
862+
*
863863
* @param _signatureBuf A buffer of the D-Bus signature.
864864
* @param _dataBuf The buffer to demarshall from.
865865
* @param _offsets An array of two ints, which holds the position of the current signature offset and the current
@@ -1131,7 +1131,7 @@ private Object optimizePrimitives(byte[] _signatureBuf, byte[] _dataBuf, int[] _
11311131

11321132
/**
11331133
* Demarshall values from a buffer.
1134-
*
1134+
*
11351135
* @param _signature The D-Bus signature(s) of the value(s).
11361136
* @param _dataBuf The buffer to demarshall from.
11371137
* @param _offsets The offset into the data buffer to start.
@@ -1147,7 +1147,7 @@ public Object[] extract(String _signature, byte[] _dataBuf, int _offsets) throws
11471147

11481148
/**
11491149
* Demarshall values from a buffer.
1150-
*
1150+
*
11511151
* @param _signature The D-Bus signature(s) of the value(s).
11521152
* @param _dataBuf The buffer to demarshall from.
11531153
* @param _offsets An array of two ints, which holds the position of the current signature offset and the current
@@ -1170,7 +1170,7 @@ public Object[] extract(String _signature, byte[] _dataBuf, int[] _offsets) thro
11701170

11711171
/**
11721172
* Returns the Bus ID that sent the message.
1173-
*
1173+
*
11741174
* @return string
11751175
*/
11761176
public String getSource() {
@@ -1179,7 +1179,7 @@ public String getSource() {
11791179

11801180
/**
11811181
* Returns the destination of the message.
1182-
*
1182+
*
11831183
* @return string
11841184
*/
11851185
public String getDestination() {
@@ -1188,7 +1188,7 @@ public String getDestination() {
11881188

11891189
/**
11901190
* Returns the interface of the message.
1191-
*
1191+
*
11921192
* @return string
11931193
*/
11941194
public String getInterface() {
@@ -1197,7 +1197,7 @@ public String getInterface() {
11971197

11981198
/**
11991199
* Returns the object path of the message.
1200-
*
1200+
*
12011201
* @return string
12021202
*/
12031203
public String getPath() {
@@ -1210,7 +1210,7 @@ public String getPath() {
12101210

12111211
/**
12121212
* Returns the member name or error name this message represents.
1213-
*
1213+
*
12141214
* @return string
12151215
*/
12161216
public String getName() {
@@ -1223,7 +1223,7 @@ public String getName() {
12231223

12241224
/**
12251225
* Returns the dbus signature of the parameters.
1226-
*
1226+
*
12271227
* @return string
12281228
*/
12291229
public String getSig() {
@@ -1232,7 +1232,7 @@ public String getSig() {
12321232

12331233
/**
12341234
* Returns the message flags.
1235-
*
1235+
*
12361236
* @return int
12371237
*/
12381238
public int getFlags() {
@@ -1241,7 +1241,7 @@ public int getFlags() {
12411241

12421242
/**
12431243
* Returns the message serial ID (unique for this connection)
1244-
*
1244+
*
12451245
* @return the message serial.
12461246
*/
12471247
public long getSerial() {
@@ -1250,7 +1250,7 @@ public long getSerial() {
12501250

12511251
/**
12521252
* If this is a reply to a message, this returns its serial.
1253-
*
1253+
*
12541254
* @return The reply serial, or 0 if it is not a reply.
12551255
*/
12561256
public long getReplySerial() {
@@ -1263,7 +1263,7 @@ public long getReplySerial() {
12631263

12641264
/**
12651265
* Parses and returns the parameters to this message as an Object array.
1266-
*
1266+
*
12671267
* @return object array
12681268
* @throws DBusException on failure
12691269
*/
@@ -1285,7 +1285,7 @@ public void setArgs(Object[] _args) {
12851285

12861286
/**
12871287
* Warning, do not use this method unless you really know what you are doing.
1288-
*
1288+
*
12891289
* @param source string
12901290
* @throws DBusException on error
12911291
*/

0 commit comments

Comments
 (0)