mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-10 14:26:45 +00:00
Code style & refactor for two issues
This commit is contained in:
parent
bcd96be625
commit
35b6f06687
@ -237,6 +237,8 @@ public class VaultDimension {
|
|||||||
openings.add(Direction.WEST);
|
openings.add(Direction.WEST);
|
||||||
attachedWorld.openings.add(Direction.EAST);
|
attachedWorld.openings.add(Direction.EAST);
|
||||||
break;
|
break;
|
||||||
|
case default;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
attachedWorld.coords.x = coords.x + direction.dX;
|
attachedWorld.coords.x = coords.x + direction.dX;
|
||||||
|
@ -127,11 +127,13 @@ public class OperandTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Invalid operands
|
//Invalid operands
|
||||||
try{ new Operand("aa", labels, registerSet, 0); } catch (InvalidOperandException e){}
|
try{ new Operand("aa", labels, registerSet, 0); } catch (InvalidOperandException e){
|
||||||
|
//It's not a valid Operand; that's okey, just continue; VALID FOR ALL THE OTHER CATCH SENTENCES
|
||||||
|
}
|
||||||
try{ new Operand("a1", labels, registerSet, 0); } catch (InvalidOperandException e){}
|
try{ new Operand("a1", labels, registerSet, 0); } catch (InvalidOperandException e){}
|
||||||
try{ new Operand("a_", labels, registerSet, 0); } catch (InvalidOperandException e){}
|
try{ new Operand("a_", labels, registerSet, 0); } catch (InvalidOperandException e){}
|
||||||
try{ new Operand("_a", labels, registerSet, 0); } catch (InvalidOperandException e){}
|
try{ new Operand("_a", labels, registerSet, 0); } catch (InvalidOperandException e){}
|
||||||
try{ new Operand("_1", labels, registerSet, 0); } catch (InvalidOperandException e){}
|
try{ new Operand("_1", labels, registerSet, 0); } catch (InvalidOperandException e){ }
|
||||||
try{ new Operand("S", labels, registerSet, 0); } catch (InvalidOperandException e){}
|
try{ new Operand("S", labels, registerSet, 0); } catch (InvalidOperandException e){}
|
||||||
try{ new Operand("label1_", labels, registerSet, 0); } catch (InvalidOperandException e){}
|
try{ new Operand("label1_", labels, registerSet, 0); } catch (InvalidOperandException e){}
|
||||||
try{ new Operand("+label1", labels, registerSet, 0); } catch (InvalidOperandException e){}
|
try{ new Operand("+label1", labels, registerSet, 0); } catch (InvalidOperandException e){}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user