Skip to content

Commit

Permalink
Merge pull request #1360 from pjonsson/contikieeprom-fixes
Browse files Browse the repository at this point in the history
ContikiEEProm: fix various IntelliJ warnings
  • Loading branch information
nfi authored Oct 29, 2023
2 parents 0022abe + f42142c commit a133cd8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,15 @@ public int getLastWrittenCount() {
return lastWritten;
}

static String byteArrayToPrintableCharacters(byte[] data, int offset, int length) {
private static String byteArrayToPrintableCharacters(byte[] data, int offset, int length) {
StringBuilder sb = new StringBuilder();
for (int i = offset; i < offset + length; i++) {
sb.append(data[i] > 31 && data[i] < 128 ? (char) data[i] : '.');
sb.append(data[i] > 31 ? (char) data[i] : '.');
}
return sb.toString();
}

static String byteArrayToHexList(byte[] data, int offset, int length) {
private static String byteArrayToHexList(byte[] data, int offset, int length) {
StringBuilder sb = new StringBuilder();

for (int i = 0; i < length; i++) {
Expand All @@ -186,7 +186,7 @@ static String byteArrayToHexList(byte[] data, int offset, int length) {
return sb.toString();
}

void redrawDataView(JTextArea textArea) {
private void redrawDataView(JTextArea textArea) {
StringBuilder sb = new StringBuilder();
Formatter fmt = new Formatter(sb);
byte[] data = getEEPROMData();
Expand Down

0 comments on commit a133cd8

Please sign in to comment.