-
Notifications
You must be signed in to change notification settings - Fork 59
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
Zero-length array allocation inspection (idea) #504
Open
RusTit
wants to merge
103
commits into
ForestryMC:master-MC1.12
Choose a base branch
from
RusTit:memory_zero_Array
base: master-MC1.12
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 76 commits
Commits
Show all changes
103 commits
Select commit
Hold shift + click to select a range
dc9f9df
AbstractMod.java
RusTit 2247599
AlvearyLogicStimulator.java
RusTit 87d0f00
AnalystPageFruit.java
RusTit 234b863
BlockDesign.java
RusTit 2fe06eb
Botany.java remove override method. It is same with AbstractMod
RusTit f730dca
ComponentTankContainer.java
RusTit 9306a88
ContainerCraftGUI.java
RusTit 6c75184
DefaultMachineInventory.java
RusTit d0d8bb1
DefaultTankContainer.java
RusTit 62d828a
Engineering.java
RusTit 0e4c264
ErrorState.java
RusTit a81a986
WindowGenesis.java
RusTit e6ae7a7
TransferRequest.java
RusTit f42565a
WindowCompartment.java
RusTit 2f551a0
MachineComponent.java, ManagerMachine.java, ItemSerumArray.java, Rota…
RusTit f25638a
FlowerRoot.java - remove method override getRandomTemplate. It is sam…
RusTit 491bca8
Merge branch 'master-MC1.12' into memory_zero_Array
RusTit f9efc57
Refactoring and clean up
RusTit 3164761
Small refactor
RusTit 67f6167
Small refactor
RusTit 9e66628
Small refactor
RusTit 56e3a6c
AlleleHelper.java - add final to vars in methods.
RusTit 1546d7c
Refactoring BreedingSystem.java
RusTit fffb54d
Gene.java
RusTit a5dbd38
Code cleanup
RusTit 0ea7cbc
Code cleanup
RusTit 1b5ab81
Code cleanup
RusTit ffcf137
Refactor to use EmptyHelper.EMPTY_STRING
RusTit 71a9cb6
Clean up fieldkit
RusTit a50ac55
Clean up WindowGenesis.java
RusTit 2700726
Clean up ControlEnergyBar.java
RusTit 1a4cd05
Clean up ControlErrorState.java
RusTit 5e134aa
Add final to vars
RusTit c72e4c1
Small refactoring in ControlPlayerInventory.java
RusTit 56d499e
Refactor and localize ControlProgressBase.java
RusTit 0334c8d
Add final to vars
RusTit 5ac0e50
Add Nullable annotation to label
RusTit 7019466
Add final to vars
RusTit 0c08015
Add final to vars
RusTit 71ea3e4
Improve localise in ControlUser.java
RusTit f01b9f4
Refactor to use EmptyHelper.EMPTY_STRING
RusTit 0aacdca
Small refactoring in ContainerCraftGUI.java
RusTit 5f57ea2
Small refactoring in CustomSlot.java
RusTit fb23c58
Add final to vars GuiCraftGUI.java
RusTit 5268728
Add final to vars Window.java
RusTit 2b6cc7f
Add final to vars renderer
RusTit c3e9f8b
Add final to vars renderer
RusTit 4195e2b
Refactor to use org.apache.commons.lang3.StringUtils.EMPTY
RusTit 4255589
Fix crashing with NullPointerException in Tolerance.toString()
RusTit 15a0204
Add final to vars. Rename min and sec in ru_lang.
RusTit fa368b1
Refactor getWidget()
RusTit 64ed74f
Use Constants.EXTRA_BEES_MOD_ID in ExtraBeesIntegration.java
RusTit f06f9d4
Remove this.setUnlocalizedName("genesis"); already invoked in super
RusTit 555847f
Remove this.setUnlocalizedName("field_kit"); already invoked in super
RusTit 02f81fa
Remove this.setUnlocalizedName(name); already invoked in super
RusTit c948c9e
Add final to vars.
RusTit 2127146
Small refactoring in FluidContainerType.java
RusTit f88d84e
Add @Nullable annotation in FluidHandlerItemBinnie.java
RusTit 7e4bd23
Add final to vars.
RusTit f1b0bab
Improve FluidContainerType.java and ItemFluidContainer.java localizing.
RusTit 96bd7d8
Add final and some refactoring in ManagerLiquid.java
a8b4f61
ManagerLiquid.java
d91181d
Add @Nullable annotation in ITankMachine.java
5a0ba07
Add final to vars in TileEntityMachineBase.java
989164b
Add final to vars in ErrorState.java
cd1f24e
Remove unused anymore setOutputSides in BaseSlot.java
389c08a
Add final to vars and StringUtils.Empty for ""
7d6c42a
Refactor duplication code in ComponentInventorySlots.java, ComponentT…
888c4f7
Various final and annotations.
b82624e
Improve localize SlotValidator.java
2dee6f8
ControlSlot.java tooltip loc improve
b050cee
Small refactor TankSlot.java
6fa260b
ComponentPowerReceptor.java - remove null checks from world var. But …
e697607
Various final, NBT keys const.
ebc62ca
Various final, NBT keys const.
bbb3242
Compartment refactoring start.
853f7b3
SearchDialog.java code refactoring.
f4ed704
Revert back checking for null.
f8b9fe4
Improve SearchDialog.java localizing
8534327
Update ComponentPowerReceptor.java
RusTit f1c7186
Update ComponentPowerReceptor.java
RusTit 537ab84
Fix border painting in SearchDialog
ec8f386
Small clean up
e879445
Remove unused empty Integer[] array anymore
2b66108
Remove final from vars
c3a6edc
Merge remote-tracking branch 'main/HEAD' into memory_zero_Array
a25d01b
Method names should start with a lowercase letter.
RusTit 6db93dc
Improve variable.
RusTit 2706a2e
Change checking for string emptiness.
RusTit 35833f9
Improve intends
RusTit f9a801f
Improve localise in ControlLiquidTank.java
RusTit aa1ad08
Merge branch 'master-MC1.12' into memory_zero_Array
5f740e8
Merge remote-tracking branch 'origin/memory_zero_Array' into memory_z…
8bd8a46
Refactor tab slots array init.
0ec3efb
Extract createTab from lambda
0595121
Refactoring compartment window.
1de8fe8
Code clean up
894fc28
Extract slide and localize
b1fca09
Extract method createTabNameControl
483d57c
Extract method createTabIconControl
241d31e
Refactoring and localizing compartment
01b2c61
indentation
839e476
Remove unused comment.
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 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 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 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 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 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 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 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 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 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any idea what the significance of this number is?
I thought it might be a power of 2 minus 1, but the nearest power of 2 is 2^14 (16384) which is also a weird number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea, I was trying to find this value (binnie, forestry, forge) but no successed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Max seems to be
OreDictionary.WILDCARD_VALUE
at 32767 so this doesn't even have the right number of bits.