Skip to content

Commit

Permalink
Remove validation from BDFFile.java [23650083]
Browse files Browse the repository at this point in the history
  • Loading branch information
hibrandon committed Mar 29, 2012
1 parent 4bd9508 commit 4b0b699
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/edu/cmu/sv/arinc838/binary/BdfFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ public BdfFile(File file) throws FileNotFoundException {
}

public void writeUint32(long value) throws IOException {
super.writeInt((int) DataValidator.validateUint32(value));
super.writeInt((int)value);
}

public static long asUint32(int value) {
return value & 0xffffffffL;
}

public void writeStr64k(String value) throws IOException {
super.writeUTF(DataValidator.validateStr64kBinary(value));
super.writeUTF(value);
}

/**
Expand Down Expand Up @@ -85,13 +85,13 @@ private void writePointer(int pointerLocation) throws IOException {
}

public void writeHexbin32(byte[] hexBin) throws IOException {
byte[] hexBinToWrite = DataValidator.validateHexbin32(hexBin);
byte[] hexBinToWrite = hexBin;

write(hexBinToWrite);
}

public void writeHexbin64k(byte[] hexBin) throws IOException {
byte[] hexBinToWrite = DataValidator.validateHexbin64k(hexBin);
byte[] hexBinToWrite = hexBin;

writeShort(hexBinToWrite.length);
write(hexBinToWrite);
Expand Down

0 comments on commit 4b0b699

Please sign in to comment.