Skip to content

Commit 8b7827b

Browse files
committed
fix json file name
1 parent 7701af1 commit 8b7827b

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.1.1] - 2024-05-30
9+
10+
### 🐛 Bug Fixes
11+
- **Duplicate JSON File Extension**: Fixed issue where output files had double `.json.json` extension
12+
- Problem: `getJsonFileName()` was returning filename with `.json` extension, then `.json` was added again during file creation
13+
- Solution: Modified `getJsonFileName()` to return base filename without extension
14+
- Files now correctly named as `project_class_method.json` instead of `project_class_method.json.json`
15+
16+
### 🔧 Technical Details
17+
- Modified `TestCaseAnalyzer.AnalysisResult.getJsonFileName()` method
18+
- Maintains backward compatibility - no changes to JSON content format
19+
- File sanitization (replacing invalid characters with `_`) still works correctly
20+
821
## [1.1.0] - 2024-05-30
922

1023
### ✨ New Features

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ application {
1717
}
1818

1919
group = 'edu.stevens'
20-
version = '1.1.0'
20+
version = '1.1.1'
2121

2222
dependencies {
2323
// Use JitPack dependency for release builds

src/main/java/edu/stevens/swe/research/java/cli/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import edu.stevens.swe.research.java.cli.analyzer.TaskResult;
1616
import edu.stevens.swe.research.java.cli.analyzer.ResultFormatter;
1717

18-
@Command(name = "analyzer", mixinStandardHelpOptions = true, version = "Analyzer CLI 1.1",
18+
@Command(name = "analyzer", mixinStandardHelpOptions = true, version = "Analyzer CLI 1.1.1",
1919
description = "Analyzes Java source code based on specified tasks.")
2020
public class Main implements Callable<Integer> {
2121

src/main/java/edu/stevens/swe/research/java/cli/analyzer/core/TestCaseAnalyzer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static class AnalysisResult {
4545

4646
// Helper to create the JSON filename
4747
public String getJsonFileName() {
48-
return projectName + ":" + testClassName + ":" + testCaseName + ".json";
48+
return projectName + ":" + testClassName + ":" + testCaseName;
4949
}
5050
}
5151

0 commit comments

Comments
 (0)