Skip to content

Commit 36fd27b

Browse files
committed
chore: Refactor
1 parent a949e7f commit 36fd27b

File tree

6 files changed

+5
-18
lines changed

6 files changed

+5
-18
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ target/
2222
*.war
2323
*.ear
2424
*.class
25+
26+
logs/file-compression.log

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ mvn exec:java
124124
### Using JAR directly
125125
After building with Maven, you can run the JAR:
126126
```bash
127-
java -jar target/file-compression-1.0-SNAPSHOT-jar-with-dependencies.jar
127+
java -jar target/file-compression-2.0-SNAPSHOT-jar-with-dependencies.jar
128128
```
129129

130130
![Outlook](/git_resource/outlook.png?raw=true "File Compression GUI")

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>prog</groupId>
88
<artifactId>file-compression</artifactId>
9-
<version>1.0-SNAPSHOT</version>
9+
<version>2.0-SNAPSHOT</version>
1010

1111
<properties>
1212
<maven.compiler.source>21</maven.compiler.source>

src/main/java/prog/huffman/HuffmanDecompressor.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -196,18 +196,4 @@ private void decompressFile() {
196196
public void decompress() {
197197
decompressFile();
198198
}
199-
200-
/**
201-
* Decompresses the file to a specific output path
202-
*
203-
* @param outputFilePath The path where the decompressed file will be saved
204-
* @throws RuntimeException if decompression fails
205-
* @throws IllegalArgumentException if outputFilePath is null or invalid
206-
*/
207-
@Override
208-
public void decompress(String outputFilePath) {
209-
FileUtils.validateOutputFilePath(outputFilePath);
210-
// This method is no longer supported with the new architecture
211-
throw new UnsupportedOperationException("Custom output path not supported. Use decompress() instead.");
212-
}
213199
}

src/main/java/prog/huffman/HuffmanUtils.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ public static String[] generateHuffmanCodes(HuffmanNode node) {
198198
* }</pre>
199199
*
200200
* @return An array of Constants.BYTE_VALUES_COUNT strings where index i contains the binary representation of byte value i
201-
* @since 1.0
202201
*/
203202
public static String[] createBinaryStringsForBytes() {
204203
String[] byteToBinaryStrings = new String[Constants.BYTE_VALUES_COUNT];

src/main/java/prog/ui/MainWindow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private static void showHowToDialog() {
102102
private static void showAboutDialog() {
103103
String message = "<html><body style='width: 350px; padding: 10px;'>" +
104104
"<h2>File Compressor</h2>" +
105-
"<p><b>Version:</b> 1.0</p>" +
105+
"<p><b>Version:</b> 2.0</p>" +
106106
"<p>A Java-based file compression application implementing two classic compression algorithms:</p>" +
107107
"<ul>" +
108108
"<li><b>Huffman Coding</b> - Frequency-based compression</li>" +

0 commit comments

Comments
 (0)