From 3faced7068a8401b57be8949e80ce4f4da4a0fb5 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Fri, 10 May 2024 00:32:34 +0100 Subject: Format all code, add editorconfig --- src/com/wilko/jaim/FLAPSignonFrame.java | 84 +++++++++++++++------------------ 1 file changed, 38 insertions(+), 46 deletions(-) (limited to 'src/com/wilko/jaim/FLAPSignonFrame.java') diff --git a/src/com/wilko/jaim/FLAPSignonFrame.java b/src/com/wilko/jaim/FLAPSignonFrame.java index 93ef5ed..48aa4fe 100644 --- a/src/com/wilko/jaim/FLAPSignonFrame.java +++ b/src/com/wilko/jaim/FLAPSignonFrame.java @@ -1,4 +1,4 @@ -/* +/* * (C) 2002 Paul Wilkinson wilko@users.sourceforge.net * * This program is free software; you can redistribute it and/or modify @@ -26,65 +26,57 @@ package com.wilko.jaim; /** - * - * @author paulw + * @author paulw * @version $Revision: 1.3 $ */ public class FLAPSignonFrame extends FLAPFrame { - /** Creates new FlapSignonFrame */ + /** + * Creates new FlapSignonFrame + */ public FLAPSignonFrame() { - frame[1]=FLAP_FRAME_SIGNON; + frame[1] = FLAP_FRAME_SIGNON; } - - public FLAPSignonFrame(byte frameData[]) - { - frame[1]=FLAP_FRAME_SIGNON; + + public FLAPSignonFrame(byte[] frameData) { + frame[1] = FLAP_FRAME_SIGNON; setFrameData(frameData); } - - public int getFLAPVersion() - { - return(((frame[6]&0xff)*16777216)+((frame[7]&0xff)*65536)+((frame[8]&0xff)*256)+(frame[9]&0xff)); + + public int getFLAPVersion() { + return (((frame[6] & 0xff) * 16777216) + ((frame[7] & 0xff) * 65536) + ((frame[8] & 0xff) * 256) + (frame[9] & 0xff)); } - - public void setFLAPVersion(int version) - { - for (int i=3;i>=0;i--) - { - frame[6+i]=(byte)(version&0xff); - version=version>>8; + + public void setFLAPVersion(int version) { + for (int i = 3; i >= 0; i--) { + frame[6 + i] = (byte) (version & 0xff); + version = version >> 8; } } - - public void setTLVTag(int tag) - { - for (int i=1;i>=0;i--) - { - frame[10+i]=(byte)(tag&0xff); - tag=tag>>8; + + public void setTLVTag(int tag) { + for (int i = 1; i >= 0; i--) { + frame[10 + i] = (byte) (tag & 0xff); + tag = tag >> 8; } } - - public void setUserName(String name) - { - - int len=0; - for (int i=0;i