Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/com/base/engine/core/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,16 @@ public static FloatBuffer CreateFlippedBuffer(Matrix4f value)

public static String[] RemoveEmptyStrings(String[] data)
{
ArrayList<String> result = new ArrayList<String>();
List<String> filtered = new ArrayList<String>();

for(int i = 0; i < data.length; i++)
if(!data[i].equals(""))
result.add(data[i]);

String[] res = new String[result.size()];
result.toArray(res);
for (String checking : data) {
if (checking.isEmpty()) {
continue;
}
filtered.add(checking);
}

return res;
return filtered.toArray(new String[0]);
}

public static int[] ToIntArray(Integer[] data)
Expand Down