-
Notifications
You must be signed in to change notification settings - Fork 2
Optimized Utils.name() & String object creation #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
e44b30e
Optimized Utils.name() to reduce number of String objects created
r0goyal 5533039
Reduced number of iterations in HomePageControllerTest
r0goyal 8d0ec06
Replaced String.format() with varargs
r0goyal 63e19fa
Reverted build.yml changes
r0goyal b867a82
Separated out jacoco coverage report task
r0goyal 5bb6d1a
Made Map static
r0goyal 84b6367
Upgraded cache action version since v1 is now removed
r0goyal f32c901
Dummy
r0goyal 049b24b
Optimized trace log line
r0goyal b1c2724
Changed String.format() everywhere
r0goyal 2424d6d
Changed Collections.synchronizedSet() to normal HashSet<>()
r0goyal e81cc7a
Changed ConcurrentHashMap to Map in definition. Moved to release version
r0goyal 5a72d4c
Added method to remove from DataSet
r0goyal 72ed696
Moved all write operations through a single lock method
r0goyal 3be93c5
Added method to remove data from DataSet
r0goyal e438479
Moved to release version
r0goyal f187eeb
Fixed node ranking
r0goyal 46ade13
Fixed ranking infinite loop issue
r0goyal b874747
Disabled sonar for testing purposes
r0goyal cd57ccf
Disabled sonar for testing purposes
r0goyal 515aef4
Disabled sonar for testing purposes
r0goyal 2e3fb20
Slight changes in jacoco plugin
r0goyal 7a9fd2c
Slight changes in jacoco plugin
r0goyal 7c9680b
Update build.yml
santanusinha 6ae59fa
Updated pom version
r0goyal 2fd9332
Removed unnecessary method
r0goyal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| name: JaCoCo Coverage | ||
| on: | ||
| pull_request: | ||
| branches: [ master ] # Adjust branches as needed | ||
|
|
||
| permissions: | ||
| # Required for checking out the code | ||
| contents: read | ||
| # Required for posting comments and status checks | ||
| pull-requests: write | ||
| # Required for reading report files | ||
| actions: read # Optional, often implicitly available | ||
|
|
||
| jobs: | ||
| build-and-report: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Set up JDK 11 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: 11 # Or your project's Java version | ||
| distribution: temurin | ||
|
|
||
| - name: Build and analyze | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
| run: mvn -B verify | ||
|
|
||
| - name: Check for JaCoCo Report File | ||
| run: | | ||
| echo "Searching for JaCoCo reports..." | ||
| find ${{ github.workspace }} -name 'jacoco*.xml' # General search | ||
| echo "--- Listing Maven default ---" | ||
| ls -l ${{ github.workspace }}/target/site/jacoco/jacoco.xml || echo "Maven default not found" | ||
| # --- Coverage Reporting Step --- | ||
| - name: JaCoCo Report to PR Comment | ||
| id: jacoco | ||
| uses: madrapps/jacoco-report@v1.7.1 # Use the latest version | ||
| with: | ||
| paths: | | ||
| ${{ github.workspace }}/**/target/site/jacoco/jacoco.xml | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| min-coverage-overall: 95 # Example value | ||
| min-coverage-changed-files: 95 # Example value | ||
| update-comment: true | ||
| title: "📊 JaCoCo Code Coverage" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.