diff --git a/nbproject/private/private.properties b/nbproject/private/private.properties
index eebfb44..de27802 100644
--- a/nbproject/private/private.properties
+++ b/nbproject/private/private.properties
@@ -5,4 +5,4 @@ do.jlink=false
javac.debug=true
javadoc.preview=true
jlink.strip=false
-user.properties.file=C:\\Users\\ivanov.i\\AppData\\Roaming\\NetBeans\\20\\build.properties
+user.properties.file=C:\\Users\\ivanov.i\\AppData\\Roaming\\NetBeans\\23\\build.properties
diff --git a/nbproject/private/private.xml b/nbproject/private/private.xml
index 9ce1721..b23b27b 100644
--- a/nbproject/private/private.xml
+++ b/nbproject/private/private.xml
@@ -3,8 +3,7 @@
- file:/O:/projects/Workspace_Java/GettextDB/src/tools/Download2.java
- file:/O:/projects/Workspace_Java/GettextDB/src/potoxml/FileFinder.java
+ file:/O:/projects/Workspace_Java/GettextDB/src/potoxml/AssemblyJFrame.java
file:/O:/projects/Workspace_Java/GettextDB/src/potoxml/NewJFrame.java
diff --git a/src/potoxml/FileFinder.java b/src/potoxml/FileFinder.java
index 60df0da..c343e82 100644
--- a/src/potoxml/FileFinder.java
+++ b/src/potoxml/FileFinder.java
@@ -201,7 +201,7 @@ public class FileFinder
throw new Exception("Ошибка: указанный путь не существует");
}
//если задано регулярное выражение, создаем Pattern
- if (!mask.equals(""))
+ if (!mask.isEmpty())
{
p = Pattern.compile(mask, Pattern.CASE_INSENSITIVE | Pattern.COMMENTS); //Pattern.UNIcomment_CASE
}
diff --git a/src/tools/Download2.java b/src/tools/Download2.java
index 8e4fc80..85b4a1d 100644
--- a/src/tools/Download2.java
+++ b/src/tools/Download2.java
@@ -149,12 +149,12 @@ public class Download2 extends Observable implements Runnable
}
// Open file and seek to the end of it.
- if (!fileName.equals(""))
+ if (!fileName.isEmpty())
{
file = new RandomAccessFile(fileName, "rw");
file.seek(downloaded);
}
- if (fileName.equals("")) //фаил не задан сохраняем в буфер
+ if (fileName.isEmpty()) //фаил не задан сохраняем в буфер
{
this.buffer = new byte[size];
}
@@ -162,7 +162,7 @@ public class Download2 extends Observable implements Runnable
stream = connection.getInputStream();
while (status == DOWNLOADING)
{
- if (!fileName.equals("")) //если сохраняем в фаил
+ if (!fileName.isEmpty()) //если сохраняем в фаил
{
byte buffer[];
if (size - downloaded > MAX_BUFFER_SIZE)
@@ -180,7 +180,7 @@ public class Download2 extends Observable implements Runnable
file.write(buffer, 0, read);
downloaded += read;
}
- if (fileName.equals("")) //если сохраняем в буфер
+ if (fileName.isEmpty()) //если сохраняем в буфер
{
byte buffer[];
if (size - downloaded > MAX_BUFFER_SIZE)
@@ -244,11 +244,11 @@ public class Download2 extends Observable implements Runnable
*/
public DataInputStream getData()
{
- if (fileName.equals("")) //если сохраняем в буфер
+ if (fileName.isEmpty()) //если сохраняем в буфер
{
return new DataInputStream(new BufferedInputStream(new ByteArrayInputStream(buffer)));
}else
- if (!fileName.equals("")) //если сохраняем в буфер
+ if (!fileName.isEmpty()) //если сохраняем в буфер
{
try
{