Skip to content
Merged
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
5 changes: 2 additions & 3 deletions api/src/org/labkey/api/util/FileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ public static void startRequest()
tempPaths.get().clear();
}


@SuppressWarnings("RedundantOperationOnEmptyContainer")
public static void stopRequest()
{
Expand Down Expand Up @@ -1484,7 +1483,7 @@ public static void copyData(InputStream is, DataOutput os) throws IOException
os.write(buf,0,r);
}


// NOTE: Keep in sync with the copied constants in TestFileUtils
private static final char[] ILLEGAL_CHARS = {'/','\\',':','?','<','>','*','|','"','^', '\n', '\r', '\''};
public static final String ILLEGAL_CHARS_STRING = new String(ILLEGAL_CHARS);

Expand All @@ -1499,7 +1498,7 @@ public static boolean isLegalName(String name)
return !StringUtils.containsAny(name, ILLEGAL_CHARS);
}


// NOTE: Keep in sync with the copied implementation in TestFileUtils.makeLegalFileName()
public static String makeLegalName(String name)
{
if (name == null)
Expand Down