This is a simple Java project used to demonstrate the Large Codebase SDK refactoring capabilities.
com/example/app/
├── Main.java # Main application entry point
├── processor/
│ └── DataProcessor.java # Data processing logic
├── util/
│ └── Utils.java # Utility functions
└── validator/
└── Validator.java # Data validation logic
This example Java project has a simple structure with:
- Dependencies between files:
Main.javaimports and uses classes fromprocessor,util, andvalidatorpackages - Cross-module references: Multiple files import and use
Utils.java - Typical Java package structure: Standard package hierarchy with related functionality grouped together
This makes it perfect for demonstrating how the Large Codebase SDK can:
- Analyze file dependencies
- Create batches of files that can be refactored in parallel
- Apply refactorings while respecting dependency order
- Verify changes across the codebase
See the main SDK README for a complete walkthrough of using this example project.
The code implements a simple data processing application:
Main.java: Loads sample data and processes itDataProcessor.java: Separates and processes strings vs. numbersUtils.java: Provides string formatting and sum calculationValidator.java: Validates data format and email addresses
The code has intentional dependencies between files to demonstrate the SDK's ability to handle complex refactoring scenarios.