├── .editorconfig ├── .github └── dependabot.yml ├── .gitignore ├── .travis.yml ├── IntelliJCodeStyle.xml ├── LICENSE ├── README.md ├── build.gradle ├── generated ├── resources │ └── lombok │ │ └── core │ │ └── handlers │ │ └── singulars.txt └── src │ └── lombok │ └── core │ └── handlers │ └── Singulars.java ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── intellij.lombok.iml ├── lang └── src │ ├── de │ └── plushnikov │ │ └── intellij │ │ └── plugin │ │ └── language │ │ ├── LombokConfigLexer.java │ │ ├── parser │ │ └── LombokConfigParser.java │ │ └── psi │ │ ├── LombokConfigCleaner.java │ │ ├── LombokConfigOperation.java │ │ ├── LombokConfigProperty.java │ │ ├── LombokConfigTypes.java │ │ ├── LombokConfigVisitor.java │ │ └── impl │ │ ├── LombokConfigCleanerImpl.java │ │ ├── LombokConfigOperationImpl.java │ │ └── LombokConfigPropertyImpl.java │ └── icons │ └── LombokIcons.java ├── lib ├── jsr305-3.0.2.jar ├── lombok-1.18.18.jar └── lombok-1.18.2.jar ├── parts ├── pluginChanges.html └── pluginDescription.html ├── settings.gradle ├── src ├── main │ ├── java │ │ └── de │ │ │ └── plushnikov │ │ │ └── intellij │ │ │ └── plugin │ │ │ ├── LombokBundle.java │ │ │ ├── LombokClassNames.java │ │ │ ├── Version.java │ │ │ ├── action │ │ │ ├── LombokMenuGroup.java │ │ │ ├── delombok │ │ │ │ ├── AbstractDelombokAction.java │ │ │ │ ├── DelombokBuilderAction.java │ │ │ │ ├── DelombokConstructorAction.java │ │ │ │ ├── DelombokDataAction.java │ │ │ │ ├── DelombokDelegateAction.java │ │ │ │ ├── DelombokEqualsAndHashCodeAction.java │ │ │ │ ├── DelombokEverythingAction.java │ │ │ │ ├── DelombokFieldNameConstantsAction.java │ │ │ │ ├── DelombokGetterAction.java │ │ │ │ ├── DelombokHandler.java │ │ │ │ ├── DelombokLoggerAction.java │ │ │ │ ├── DelombokSetterAction.java │ │ │ │ ├── DelombokStandardExceptionAction.java │ │ │ │ ├── DelombokSuperBuilderAction.java │ │ │ │ ├── DelombokToStringAction.java │ │ │ │ ├── DelombokUtilityClassAction.java │ │ │ │ ├── DelombokValueAction.java │ │ │ │ └── DelombokWitherAction.java │ │ │ ├── inline │ │ │ │ └── LombokInlineMethodHandler.java │ │ │ └── lombok │ │ │ │ ├── BaseLombokAction.java │ │ │ │ ├── BaseLombokHandler.java │ │ │ │ ├── LombokDataAction.java │ │ │ │ ├── LombokDataHandler.java │ │ │ │ ├── LombokEqualsAndHashcodeAction.java │ │ │ │ ├── LombokEqualsAndHashcodeHandler.java │ │ │ │ ├── LombokGetterAction.java │ │ │ │ ├── LombokGetterHandler.java │ │ │ │ ├── LombokLoggerAction.java │ │ │ │ ├── LombokLoggerHandler.java │ │ │ │ ├── LombokSetterAction.java │ │ │ │ ├── LombokSetterHandler.java │ │ │ │ ├── LombokToStringAction.java │ │ │ │ └── LombokToStringHandler.java │ │ │ ├── activity │ │ │ └── LombokBuildManagerListener.java │ │ │ ├── completion │ │ │ └── LombokOnXCompletionContributorFilter.java │ │ │ ├── extension │ │ │ ├── LombokCanBeFinalHandler.java │ │ │ ├── LombokCleanUpImplicitResourceCloser.java │ │ │ ├── LombokElementFinder.java │ │ │ ├── LombokElementRenameHandler.java │ │ │ ├── LombokElementRenameVetoHandler.java │ │ │ ├── LombokFieldFindUsagesHandlerFactory.java │ │ │ ├── LombokHighlightErrorFilter.java │ │ │ ├── LombokInferredAnnotationProvider.java │ │ │ ├── LombokLightMethodTreeGenerator.java │ │ │ ├── LombokPropertyAccessorDetector.java │ │ │ ├── LombokReadWriteAccessDetector.java │ │ │ ├── LombokReferenceSearcher.java │ │ │ ├── LombokRenameFieldReferenceProcessor.java │ │ │ ├── LombokRenameMethodProcessor.java │ │ │ ├── LombokStructureViewExtension.java │ │ │ └── postfix │ │ │ │ ├── IntroduceLombokVariableHandler.java │ │ │ │ ├── IntroduceVariableSettingsDelegate.java │ │ │ │ ├── LombokPostfixTemplateProvider.java │ │ │ │ ├── LombokValPostfixTemplate.java │ │ │ │ ├── LombokVarPostfixTemplate.java │ │ │ │ └── LombokVarValPostfixTemplate.java │ │ │ ├── handler │ │ │ ├── AddSneakyThrowsAnnotationCommandAction.java │ │ │ ├── OnXAnnotationHandler.java │ │ │ └── SneakyThrowsExceptionHandler.java │ │ │ ├── inspection │ │ │ ├── DeprecatedLombokAnnotationInspection.java │ │ │ ├── LombokGetterMayBeUsedInspection.java │ │ │ ├── LombokGetterOrSetterMayBeUsedInspection.java │ │ │ ├── LombokInspection.java │ │ │ ├── LombokJavaInspectionBase.java │ │ │ ├── LombokSetterMayBeUsedInspection.java │ │ │ ├── RedundantSlf4jDefinitionInspection.java │ │ │ ├── SpringQualifierCopyableLombokAnnotationInspection.java │ │ │ ├── StaticMethodImportLombokInspection.java │ │ │ └── modifiers │ │ │ │ ├── LombokRedundantModifierInspection.java │ │ │ │ ├── RedundantModifiersInfo.java │ │ │ │ ├── RedundantModifiersInfoType.java │ │ │ │ ├── RedundantModifiersOnUtilityClassLombokAnnotationInspection.java │ │ │ │ ├── RedundantModifiersOnValLombokAnnotationInspection.java │ │ │ │ └── RedundantModifiersOnValueLombokAnnotationInspection.java │ │ │ ├── intention │ │ │ ├── AbstractLombokIntentionAction.java │ │ │ ├── ReplaceSynchronizedWithLombokAction.java │ │ │ ├── ReplaceWithLombokAnnotationAction.java │ │ │ └── valvar │ │ │ │ ├── AbstractValVarIntentionAction.java │ │ │ │ ├── from │ │ │ │ ├── AbstractReplaceVariableWithExplicitTypeIntentionAction.java │ │ │ │ ├── ReplaceValWithExplicitTypeIntentionAction.java │ │ │ │ └── ReplaceVarWithExplicitTypeIntentionAction.java │ │ │ │ └── to │ │ │ │ ├── AbstractReplaceExplicitTypeWithVariableIntentionAction.java │ │ │ │ ├── ReplaceExplicitTypeWithValIntentionAction.java │ │ │ │ └── ReplaceExplicitTypeWithVarIntentionAction.java │ │ │ ├── jps │ │ │ └── LombokBuildProcessParametersProvider.java │ │ │ ├── language │ │ │ ├── LombokConfigColorSettingsPage.java │ │ │ ├── LombokConfigCommentor.java │ │ │ ├── LombokConfigCompletionContributor.java │ │ │ ├── LombokConfigFileType.java │ │ │ ├── LombokConfigLanguage.java │ │ │ ├── LombokConfigLexerAdapter.java │ │ │ ├── LombokConfigParserDefinition.java │ │ │ ├── LombokConfigSyntaxHighlighter.java │ │ │ ├── LombokConfigSyntaxHighlighterFactory.java │ │ │ └── psi │ │ │ │ ├── LombokConfigElementType.java │ │ │ │ ├── LombokConfigFile.java │ │ │ │ ├── LombokConfigPsiUtil.java │ │ │ │ └── LombokConfigTokenType.java │ │ │ ├── lombokconfig │ │ │ ├── ConfigDiscovery.java │ │ │ ├── ConfigKey.java │ │ │ ├── ConfigValue.java │ │ │ ├── LombokConfigChangeListener.java │ │ │ ├── LombokConfigIndex.java │ │ │ ├── LombokConfigUtil.java │ │ │ ├── LombokNullAnnotationLibrary.java │ │ │ ├── LombokNullAnnotationLibraryCustom.java │ │ │ └── LombokNullAnnotationLibraryDefned.java │ │ │ ├── problem │ │ │ ├── LombokProblem.java │ │ │ ├── LombokProblemInstance.java │ │ │ ├── ProblemProcessingSink.java │ │ │ ├── ProblemSink.java │ │ │ └── ProblemValidationSink.java │ │ │ ├── processor │ │ │ ├── AbstractProcessor.java │ │ │ ├── CleanupProcessor.java │ │ │ ├── JacksonizedProcessor.java │ │ │ ├── LombokProcessorManager.java │ │ │ ├── LombokPsiElementUsage.java │ │ │ ├── Processor.java │ │ │ ├── SynchronizedProcessor.java │ │ │ ├── ValProcessor.java │ │ │ ├── clazz │ │ │ │ ├── AbstractClassProcessor.java │ │ │ │ ├── ClassProcessor.java │ │ │ │ ├── DataProcessor.java │ │ │ │ ├── EqualsAndHashCodeProcessor.java │ │ │ │ ├── GetterProcessor.java │ │ │ │ ├── SetterProcessor.java │ │ │ │ ├── StandardExceptionProcessor.java │ │ │ │ ├── ToStringProcessor.java │ │ │ │ ├── UtilityClassProcessor.java │ │ │ │ ├── ValueProcessor.java │ │ │ │ ├── WitherProcessor.java │ │ │ │ ├── builder │ │ │ │ │ ├── AbstractBuilderPreDefinedInnerClassProcessor.java │ │ │ │ │ ├── AbstractSuperBuilderPreDefinedInnerClassProcessor.java │ │ │ │ │ ├── BuilderClassProcessor.java │ │ │ │ │ ├── BuilderPreDefinedInnerClassFieldProcessor.java │ │ │ │ │ ├── BuilderPreDefinedInnerClassMethodProcessor.java │ │ │ │ │ ├── BuilderProcessor.java │ │ │ │ │ ├── SuperBuilderClassProcessor.java │ │ │ │ │ ├── SuperBuilderPreDefinedInnerClassFieldProcessor.java │ │ │ │ │ ├── SuperBuilderPreDefinedInnerClassMethodProcessor.java │ │ │ │ │ └── SuperBuilderProcessor.java │ │ │ │ ├── constructor │ │ │ │ ├── fieldnameconstants │ │ │ │ │ ├── AbstractFieldNameConstantsProcessor.java │ │ │ │ │ ├── FieldNameConstantsOldProcessor.java │ │ │ │ │ ├── FieldNameConstantsPredefinedInnerClassFieldProcessor.java │ │ │ │ │ └── FieldNameConstantsProcessor.java │ │ │ │ └── log │ │ │ │ │ ├── AbstractLogProcessor.java │ │ │ │ │ ├── AbstractSimpleLogProcessor.java │ │ │ │ │ ├── CommonsLogProcessor.java │ │ │ │ │ ├── CustomLogParser.java │ │ │ │ │ ├── CustomLogProcessor.java │ │ │ │ │ ├── FloggerProcessor.java │ │ │ │ │ ├── JBossLogProcessor.java │ │ │ │ │ ├── Log4j2Processor.java │ │ │ │ │ ├── Log4jProcessor.java │ │ │ │ │ ├── LogProcessor.java │ │ │ │ │ ├── Slf4jProcessor.java │ │ │ │ │ └── XSlf4jProcessor.java │ │ │ ├── field │ │ │ │ ├── AbstractFieldProcessor.java │ │ │ │ ├── AccessorsInfo.java │ │ │ │ ├── DelegateFieldProcessor.java │ │ │ │ ├── FieldNameConstantsFieldProcessor.java │ │ │ │ ├── FieldProcessor.java │ │ │ │ ├── GetterFieldProcessor.java │ │ │ │ ├── SetterFieldProcessor.java │ │ │ │ └── WitherFieldProcessor.java │ │ │ ├── handler │ │ │ │ ├── BuilderHandler.java │ │ │ │ ├── BuilderInfo.java │ │ │ │ ├── DelegateHandler.java │ │ │ │ ├── EqualsAndHashCodeToStringHandler.java │ │ │ │ ├── FieldNameConstantsHandler.java │ │ │ │ ├── SuperBuilderHandler.java │ │ │ │ └── singular │ │ │ │ │ ├── AbstractSingularHandler.java │ │ │ │ │ ├── BuilderElementHandler.java │ │ │ │ │ ├── EmptyBuilderElementHandler.java │ │ │ │ │ ├── NonSingularHandler.java │ │ │ │ │ ├── SingularCollectionClassNames.java │ │ │ │ │ ├── SingularCollectionHandler.java │ │ │ │ │ ├── SingularGuavaCollectionHandler.java │ │ │ │ │ ├── SingularGuavaMapHandler.java │ │ │ │ │ ├── SingularGuavaTableHandler.java │ │ │ │ │ ├── SingularHandlerFactory.java │ │ │ │ │ └── SingularMapHandler.java │ │ │ ├── lombok │ │ │ │ └── LombokAnnotationProcessor.java │ │ │ ├── method │ │ │ │ ├── AbstractMethodProcessor.java │ │ │ │ ├── BuilderClassMethodProcessor.java │ │ │ │ ├── BuilderMethodProcessor.java │ │ │ │ ├── DelegateMethodProcessor.java │ │ │ │ ├── ExtensionMethodsHelper.java │ │ │ │ └── MethodProcessor.java │ │ │ └── modifier │ │ │ │ ├── FieldDefaultsModifierProcessor.java │ │ │ │ ├── ModifierProcessor.java │ │ │ │ ├── UtilityClassModifierProcessor.java │ │ │ │ ├── ValModifierProcessor.java │ │ │ │ └── ValueModifierProcessor.java │ │ │ ├── provider │ │ │ ├── LombokAnnotationSupport.java │ │ │ ├── LombokAugmentProvider.java │ │ │ ├── LombokDefaultAnnotationParamSupport.java │ │ │ ├── LombokImplicitUsageProvider.java │ │ │ └── LombokUserDataKeys.java │ │ │ ├── psi │ │ │ ├── LombokDelegateMethod.java │ │ │ ├── LombokEnumConstantBuilder.java │ │ │ ├── LombokExtensionMethod.java │ │ │ ├── LombokLightAnnotationMemberValue.java │ │ │ ├── LombokLightAnnotationMethodBuilder.java │ │ │ ├── LombokLightArrayInitializerMemberValue.java │ │ │ ├── LombokLightClassBuilder.java │ │ │ ├── LombokLightFieldBuilder.java │ │ │ ├── LombokLightIdentifier.java │ │ │ ├── LombokLightMethodBuilder.java │ │ │ ├── LombokLightModifierList.java │ │ │ ├── LombokLightParameter.java │ │ │ ├── LombokLightParameterListBuilder.java │ │ │ └── LombokLightReferenceListBuilder.java │ │ │ ├── quickfix │ │ │ ├── AddAbstractAndStaticModifiersFix.java │ │ │ ├── CreateFieldQuickFix.java │ │ │ ├── ExpandStaticImportFix.java │ │ │ ├── PsiQuickFixFactory.java │ │ │ └── UseSlf4jAnnotationQuickFix.java │ │ │ ├── resolver │ │ │ └── LombokExternalLibraryResolver.java │ │ │ ├── settings │ │ │ ├── ProjectSettings.java │ │ │ ├── ProjectSettingsPage.form │ │ │ └── ProjectSettingsPage.java │ │ │ ├── thirdparty │ │ │ ├── CapitalizationStrategy.java │ │ │ ├── LombokAddNullAnnotations.java │ │ │ ├── LombokCopyableAnnotations.java │ │ │ └── LombokUtils.java │ │ │ └── util │ │ │ ├── LombokLibraryUtil.java │ │ │ ├── LombokProcessorUtil.java │ │ │ ├── PsiAnnotationSearchUtil.java │ │ │ ├── PsiAnnotationUtil.java │ │ │ ├── PsiClassUtil.java │ │ │ ├── PsiElementUtil.java │ │ │ ├── PsiMethodUtil.java │ │ │ └── PsiTypeUtil.java │ └── resources │ │ ├── LombokIconMappings.json │ │ ├── META-INF │ │ ├── plugin.xml │ │ └── pluginIcon.svg │ │ ├── de │ │ └── plushnikov │ │ │ └── intellij │ │ │ └── plugin │ │ │ └── language │ │ │ ├── lombokConfig.bnf │ │ │ └── lombokConfig.flex │ │ ├── icons │ │ ├── config.svg │ │ ├── expui │ │ │ ├── config.svg │ │ │ ├── config_dark.svg │ │ │ ├── icon-robots.txt │ │ │ ├── lombok.svg │ │ │ ├── lombok_dark.svg │ │ │ └── nodes │ │ │ │ ├── lombokClass.svg │ │ │ │ ├── lombokClass_dark.svg │ │ │ │ ├── lombokField.svg │ │ │ │ ├── lombokField_dark.svg │ │ │ │ ├── lombokMethod.svg │ │ │ │ └── lombokMethod_dark.svg │ │ ├── lombok.svg │ │ └── nodes │ │ │ ├── lombokClass.svg │ │ │ ├── lombokField.svg │ │ │ ├── lombokMethod.svg │ │ │ └── lombokMethod@2x.svg │ │ ├── inspectionDescriptions │ │ ├── DeprecatedLombok.html │ │ ├── Lombok.html │ │ ├── LombokGetterMayBeUsed.html │ │ ├── LombokSetterMayBeUsed.html │ │ ├── RedundantModifiersUtilityClassLombok.html │ │ ├── RedundantModifiersValLombok.html │ │ ├── RedundantModifiersValueLombok.html │ │ ├── RedundantSlf4jDefinition.html │ │ ├── SpringQualifierCopyableLombok.html │ │ └── StaticMethodImportLombok.html │ │ ├── intentionDescriptions │ │ ├── ReplaceExplicitTypeWithValIntentionAction │ │ │ ├── after.java.template │ │ │ ├── before.java.template │ │ │ └── description.html │ │ ├── ReplaceExplicitTypeWithVarIntentionAction │ │ │ ├── after.java.template │ │ │ ├── before.java.template │ │ │ └── description.html │ │ ├── ReplaceSynchronizedWithLombokAction │ │ │ ├── after.java.template │ │ │ ├── before.java.template │ │ │ └── description.html │ │ ├── ReplaceValWithExplicitTypeIntentionAction │ │ │ ├── after.java.template │ │ │ ├── before.java.template │ │ │ └── description.html │ │ ├── ReplaceVarWithExplicitTypeIntentionAction │ │ │ ├── after.java.template │ │ │ ├── before.java.template │ │ │ └── description.html │ │ └── ReplaceWithLombokAnnotationAction │ │ │ ├── after.java.template │ │ │ ├── before.java.template │ │ │ └── description.html │ │ ├── messages │ │ └── LombokBundle.properties │ │ └── postfixTemplates │ │ ├── LombokValPostfixTemplate │ │ ├── after.java.template │ │ ├── before.java.template │ │ └── description.html │ │ └── LombokVarPostfixTemplate │ │ ├── after.java.template │ │ ├── before.java.template │ │ └── description.html └── test │ ├── java │ ├── com │ │ └── intellij │ │ │ └── java │ │ │ └── lomboktest │ │ │ ├── LombokExtensionMethodsHighlightingTest.java │ │ │ ├── LombokHighlightingTest.java │ │ │ ├── LombokImplementationsViewTest.java │ │ │ ├── LombokNonNullManagerTest.java │ │ │ ├── LombokRenameTest.java │ │ │ └── LombokRequiresStaticModulInfoTest.java │ └── de │ │ └── plushnikov │ │ └── intellij │ │ └── plugin │ │ ├── AbstractLombokLightCodeInsightTestCase.java │ │ ├── AbstractLombokParsingTestCase.java │ │ ├── ExtensionMethodTest.java │ │ ├── LombokClassNamesTest.java │ │ ├── LombokTestUtil.java │ │ ├── SneakyThrowsTest.java │ │ ├── VersionTest.java │ │ ├── action │ │ ├── LombokLightActionTestCase.java │ │ ├── delombok │ │ │ ├── DelombokBuilderActionTest.java │ │ │ ├── DelombokDataActionTest.java │ │ │ ├── DelombokDelegateActionTest.java │ │ │ ├── DelombokEqualsAndHashcodeActionTest.java │ │ │ ├── DelombokFieldNameCostantsActionTest.java │ │ │ ├── DelombokGetterActionTest.java │ │ │ ├── DelombokLoggerActionTest.java │ │ │ ├── DelombokSetterActionTest.java │ │ │ ├── DelombokSuperBuilderActionTest.java │ │ │ ├── DelombokToStringActionTest.java │ │ │ ├── DelombokUtilityClassActionTest.java │ │ │ └── DelombokValueActionTest.java │ │ ├── intellij │ │ │ ├── LombokGoToDeclarationTest.java │ │ │ ├── RenameClassActionTest.java │ │ │ └── RenameFieldActionTest.java │ │ └── lombok │ │ │ ├── LombokGetterActionTest.java │ │ │ ├── LombokLoggerActionTest.java │ │ │ └── LombokSetterActionTest.java │ │ ├── completion │ │ └── LombokOnXCompletionContributorFilterTest.java │ │ ├── configsystem │ │ ├── AbstractLombokConfigSystemTestCase.java │ │ ├── AccessorsTest.java │ │ ├── BuilderClassNameTest.java │ │ ├── ConstructorTest.java │ │ ├── DataTest.java │ │ ├── EqualsAndHashCodeTest.java │ │ ├── FieldDefaultsTest.java │ │ ├── FieldNameConstantsTest.java │ │ ├── GetterTest.java │ │ ├── JacksonizedBuilderTest.java │ │ ├── LoggerTest.java │ │ ├── ToStringTest.java │ │ ├── ValueTest.java │ │ └── completion │ │ │ └── LoggerCompletionTest.java │ │ ├── extension │ │ ├── LombokReadWriteAccessFindUsagesTest.java │ │ ├── LombokStructureViewExtensionTest.java │ │ └── SneakyThrowsExceptionAddQuickFixTest.java │ │ ├── highlights │ │ ├── AbstractLombokHighlightsTest.java │ │ ├── BuilderDefaultHighlightTest.java │ │ ├── LombokInspectionHighlightTest.java │ │ ├── RecordsHighlightTest.java │ │ ├── SneakyThrowsHighlightTest.java │ │ ├── SneakyThrowsQuickFixTest.java │ │ ├── StaticConstructorHighlightTest.java │ │ ├── SuperBuilderHighlightTest.java │ │ └── WithHighlightTest.java │ │ ├── inspection │ │ ├── BuilderInspectionTest.java │ │ ├── CleanupInspectionTest.java │ │ ├── ConfigInspectionTest.java │ │ ├── DataEqualsAndHashCodeQuickFixTest.java │ │ ├── DefUseInitializerTest.java │ │ ├── DefaultConstructorInspectionTest.java │ │ ├── DelegateInspectionTest.java │ │ ├── DeprecatedLombokAnnotationInspectionTest.java │ │ ├── DiverseInspectionTest.java │ │ ├── EqualsAndHashcodeInspectionTest.java │ │ ├── FieldDefaultsOnEnumInspectionTest.java │ │ ├── JacksonizedInspectionTest.java │ │ ├── LombokAutoCloseableResourceInspectionTest.java │ │ ├── LombokDataFlowInspectionTest.java │ │ ├── LombokFieldMayBeFinalInspectionTest.java │ │ ├── LombokFieldMayBeStaticInspectionTest.java │ │ ├── LombokGetterMayBeUsedFixTest.java │ │ ├── LombokGetterMayBeUsedInspectionTest.java │ │ ├── LombokGetterMayNotBeUsedWithoutLombokLibraryInspectionTest.java │ │ ├── LombokInspectionTest.java │ │ ├── LombokMoveInitializerToConstructorTest.java │ │ ├── LombokSetterMayBeUsedFixTest.java │ │ ├── LombokSetterMayBeUsedInspectionTest.java │ │ ├── LombokSetterMayNotBeUsedWithoutLombokLibraryInspectionTest.java │ │ ├── OnXAnnotationInspectionTest.java │ │ ├── PointlessBooleanExpressionInspectionTest.java │ │ ├── RedundantModifiersOnUtilityClassLombokInspectionTest.java │ │ ├── RedundantModifiersOnValLombokInspectionTest.java │ │ ├── RedundantModifiersOnValueLombokInspectionTest.java │ │ ├── RedundantModifiersQuickFixTest.java │ │ ├── RedundantSlf4jDefinitionInspectionTest.java │ │ ├── SpringQualifierInspectionTest.java │ │ ├── StaticMethodImportLombokInspectionTest.java │ │ ├── SuperBuilderInspectionTest.java │ │ ├── SuperBuilderQuickFixTest.java │ │ └── SynchronizedInspectionTest.java │ │ ├── intention │ │ ├── LombokIntentionActionTest.java │ │ ├── LombokIntentionsApplicabilityTest.java │ │ ├── ReplaceFromFieldWithLombokAnnotationActionTest.java │ │ ├── ReplaceSynchronizedWithLombokActionTest.java │ │ └── valvar │ │ │ ├── from │ │ │ ├── ReplaceValWithExplicitTypeGenericsIntentionActionTest.java │ │ │ ├── ReplaceValWithExplicitTypeIntentionActionTest.java │ │ │ └── ReplaceVarWithExplicitTypeIntentionActionTest.java │ │ │ └── to │ │ │ ├── ReplaceExplicitTypeWithVarIntentionActionTest.java │ │ │ ├── ReplaceFinalExplicitTypeWithValIntentionActionTest.java │ │ │ └── ValAndVarIntentionActionTest.java │ │ ├── lombokconfig │ │ ├── ConfigDiscoveryTest.java │ │ ├── LombokNullAnnotationLibraryCustomTest.java │ │ └── MyProject.java │ │ ├── navigation │ │ └── ConstructorNavigationTest.java │ │ ├── performance │ │ └── PerformanceTest.java │ │ ├── postfix │ │ ├── LombokVarPostfixTemplateTest.java │ │ └── NonIdempotentComputationIssue670Test.java │ │ ├── processor │ │ ├── AccessorsTest.java │ │ ├── Builder16Test.java │ │ ├── BuilderSingularTest.java │ │ ├── BuilderTest.java │ │ ├── BuilderToBuilderTest.java │ │ ├── ConstructorTest.java │ │ ├── DataTest.java │ │ ├── DelegateTest.java │ │ ├── EqualsAndHashCodeTest.java │ │ ├── ExceptionTest.java │ │ ├── FieldNameConstantsOldTest.java │ │ ├── FieldNameConstantsTest.java │ │ ├── GetterTest.java │ │ ├── IntelliJLombokPluginTest.java │ │ ├── JacksonizedTest.java │ │ ├── LoggerTest.java │ │ ├── OnXAnnotationTest.java │ │ ├── SetterTest.java │ │ ├── StandardExceptionTest.java │ │ ├── SuperBuilderSingularTest.java │ │ ├── SuperBuilderTest.java │ │ ├── ToStringTest.java │ │ ├── TolerateTest.java │ │ ├── UtilityClassTest.java │ │ ├── ValTest.java │ │ ├── ValueTest.java │ │ ├── VarTest.java │ │ ├── WithTest.java │ │ ├── WitherTest.java │ │ ├── clazz │ │ │ └── log │ │ │ │ └── CustomLogParserTest.java │ │ └── modifier │ │ │ ├── FieldDefaultsModifierTest.java │ │ │ ├── UtilityClassModifierTest.java │ │ │ ├── ValModifierTest.java │ │ │ ├── ValueModifierTest.java │ │ │ └── VarModifierTest.java │ │ ├── refactoring │ │ └── LombokEncapsulateFieldsTest.java │ │ ├── resolver │ │ └── LombokExternalLibraryResolverTest.java │ │ ├── thirdparty │ │ ├── LombokUtilsAllGetterTest.java │ │ ├── LombokUtilsAllSetterTest.java │ │ ├── LombokUtilsAllWitherTest.java │ │ ├── LombokUtilsGetterTest.java │ │ ├── LombokUtilsPrefixedFluentTest.java │ │ ├── LombokUtilsSetterTest.java │ │ └── LombokUtilsWitherTest.java │ │ └── usage │ │ └── LombokUsageTest.java │ └── resources │ └── log4j.xml └── testData ├── action ├── delombok │ ├── builder │ │ ├── afterBuilderAtConstructorSimple.java │ │ ├── afterBuilderAtConstructorSimplePredefined.java │ │ ├── afterBuilderAtMethodSimple.java │ │ ├── afterBuilderAtMethodSimplePredefined.java │ │ ├── afterBuilderCopyableAnnotations.java │ │ ├── afterBuilderJacksonized.java │ │ ├── afterBuilderSimple.java │ │ ├── afterBuilderSimplePredefined.java │ │ ├── afterBuilderSimpleWithSetterPrefix.java │ │ ├── afterBuilderSingularMap.java │ │ ├── beforeBuilderAtConstructorSimple.java │ │ ├── beforeBuilderAtConstructorSimplePredefined.java │ │ ├── beforeBuilderAtMethodSimple.java │ │ ├── beforeBuilderAtMethodSimplePredefined.java │ │ ├── beforeBuilderCopyableAnnotations.java │ │ ├── beforeBuilderJacksonized.java │ │ ├── beforeBuilderSimple.java │ │ ├── beforeBuilderSimplePredefined.java │ │ ├── beforeBuilderSimpleWithSetterPrefix.java │ │ └── beforeBuilderSingularMap.java │ ├── data │ │ ├── afterDataSimple.java │ │ ├── afterDataWithAnnotations.java │ │ ├── afterDataWithEAHCExclude.java │ │ ├── beforeDataSimple.java │ │ ├── beforeDataWithAnnotations.java │ │ └── beforeDataWithEAHCExclude.java │ ├── delegate │ │ ├── afterDelegateOnField.java │ │ ├── afterDelegateOnMethod.java │ │ ├── beforeDelegateOnField.java │ │ └── beforeDelegateOnMethod.java │ ├── equalsandhashcode │ │ ├── afterEqualsAndHashCodeCallSuper.java │ │ ├── afterEqualsAndHashCodeExclude.java │ │ ├── afterEqualsAndHashCodeIncludeExclude.java │ │ ├── afterEqualsAndHashCodeNoGetters.java │ │ ├── afterEqualsAndHashCodeOf.java │ │ ├── afterEqualsAndHashCodeSimple.java │ │ ├── beforeEqualsAndHashCodeCallSuper.java │ │ ├── beforeEqualsAndHashCodeExclude.java │ │ ├── beforeEqualsAndHashCodeIncludeExclude.java │ │ ├── beforeEqualsAndHashCodeNoGetters.java │ │ ├── beforeEqualsAndHashCodeOf.java │ │ └── beforeEqualsAndHashCodeSimple.java │ ├── fieldnameconstants │ │ ├── afterFieldNameConstantsClass.java │ │ ├── afterFieldNameConstantsClassHandrolled.java │ │ ├── afterFieldNameConstantsEnumClass.java │ │ ├── afterFieldNameConstantsEnumHandrolled.java │ │ ├── beforeFieldNameConstantsClass.java │ │ ├── beforeFieldNameConstantsClassHandrolled.java │ │ ├── beforeFieldNameConstantsEnumClass.java │ │ └── beforeFieldNameConstantsEnumHandrolled.java │ ├── getter │ │ ├── afterGetterClass.java │ │ ├── afterGetterFields.java │ │ ├── beforeGetterClass.java │ │ └── beforeGetterFields.java │ ├── log │ │ ├── afterCommonsLog.java │ │ ├── afterFlogger.java │ │ ├── afterJBossLog.java │ │ ├── afterLog.java │ │ ├── afterLog4j.java │ │ ├── afterLog4j2.java │ │ ├── afterSlf4j.java │ │ ├── afterXSlf4j.java │ │ ├── beforeCommonsLog.java │ │ ├── beforeFlogger.java │ │ ├── beforeJBossLog.java │ │ ├── beforeLog.java │ │ ├── beforeLog4j.java │ │ ├── beforeLog4j2.java │ │ ├── beforeSlf4j.java │ │ └── beforeXSlf4j.java │ ├── setter │ │ ├── afterSetterClass.java │ │ ├── afterSetterFields.java │ │ ├── beforeSetterClass.java │ │ └── beforeSetterFields.java │ ├── superbuilder │ │ ├── afterSuperBuilderJacksonized.java │ │ └── beforeSuperBuilderJacksonized.java │ ├── tostring │ │ ├── afterClassToStringCallSuper.java │ │ ├── afterClassToStringExclude.java │ │ ├── afterClassToStringNoGetters.java │ │ ├── afterClassToStringOf.java │ │ ├── afterClassToStringSimple.java │ │ ├── beforeClassToStringCallSuper.java │ │ ├── beforeClassToStringExclude.java │ │ ├── beforeClassToStringNoGetters.java │ │ ├── beforeClassToStringOf.java │ │ └── beforeClassToStringSimple.java │ ├── utilityclass │ │ ├── afterUtilityClass.java │ │ ├── afterUtilityInner.java │ │ ├── beforeUtilityClass.java │ │ └── beforeUtilityInner.java │ └── value │ │ ├── afterValueNonFinalOnClass.java │ │ ├── afterValueNonFinalOnField.java │ │ ├── afterValuePlain.java │ │ ├── afterValueWithEAHCExclude.java │ │ ├── beforeValueNonFinalOnClass.java │ │ ├── beforeValueNonFinalOnField.java │ │ ├── beforeValuePlain.java │ │ └── beforeValueWithEAHCExclude.java ├── generateconstructor │ ├── afterGenerateConstructorAll.java │ ├── afterGenerateConstructorEmpty.java │ ├── beforeGenerateConstructorAll.java │ └── beforeGenerateConstructorEmpty.java ├── intellij │ ├── afterConstructors.java │ ├── afterLogClassRenamed.java │ ├── beforeConstructors.java │ └── beforeLogClassRenamed.java └── lombok │ ├── getter │ ├── afterGetterDifferentVisibility.java │ ├── afterGetterSimple.java │ ├── afterGetterStatic.java │ ├── afterGetterWithAnnotationChange.java │ ├── afterGetterWithAnnotationPresentOnClass.java │ ├── beforeGetterDifferentVisibility.java │ ├── beforeGetterSimple.java │ ├── beforeGetterStatic.java │ ├── beforeGetterWithAnnotationChange.java │ └── beforeGetterWithAnnotationPresentOnClass.java │ ├── log │ ├── afterLogNonFinal.java │ ├── afterLogNonStatic.java │ ├── afterLogPublic.java │ ├── afterLogRename.java │ ├── afterLogSimple.java │ ├── beforeLogNonFinal.java │ ├── beforeLogNonStatic.java │ ├── beforeLogPublic.java │ ├── beforeLogRename.java │ └── beforeLogSimple.java │ └── setter │ ├── afterSetterDifferentVisibility.java │ ├── afterSetterSimple.java │ ├── afterSetterStatic.java │ ├── afterSetterWithAnnotationChange.java │ ├── afterSetterWithAnnotationPresentOnClass.java │ ├── beforeSetterDifferentVisibility.java │ ├── beforeSetterSimple.java │ ├── beforeSetterStatic.java │ ├── beforeSetterWithAnnotationChange.java │ └── beforeSetterWithAnnotationPresentOnClass.java ├── after ├── CleanupName.java ├── CleanupPlain.java ├── ExtensionMethodPlain.java ├── FieldDefaults.java ├── FieldDefaultsNoop.java ├── InjectField.java ├── MixGetterVal.java ├── NonNullOnParameter.java ├── NonNullPlain.java ├── SimpleTypeResolution.java ├── SneakyThrowsMultiple.java ├── SneakyThrowsPlain.java ├── SneakyThrowsSingle.java ├── SynchronizedName.java ├── SynchronizedNameNoSuchField.java ├── SynchronizedNameStaticToInstanceRef.java ├── SynchronizedPlain.java ├── TestOnX.java ├── accessors │ ├── Accessors.java │ ├── AccessorsCascade.java │ └── AccessorsMakeFinal.java ├── builder │ ├── BuilderAndAllArgsConstructor.java │ ├── BuilderComplex.java │ ├── BuilderConstructorException.java │ ├── BuilderExample.java │ ├── BuilderExampleCustomized.java │ ├── BuilderGenericsOnConstructor.java │ ├── BuilderInstanceMethod.java │ ├── BuilderMethodException.java │ ├── BuilderMultipleConstructorException.java │ ├── BuilderOnRecord.java │ ├── BuilderPredefined.java │ ├── BuilderSimple.java │ ├── BuilderSimpleProtected.java │ ├── BuilderSingularGuavaListsSets.java │ ├── BuilderSingularGuavaMaps.java │ ├── BuilderSingularLists.java │ ├── BuilderSingularMaps.java │ ├── BuilderSingularNoAuto.java │ ├── BuilderSingularRedirectToGuava.java │ ├── BuilderSingularSets.java │ ├── BuilderSingularSetsWithSetterPrefix.java │ ├── BuilderSingularWithPrefixes.java │ ├── BuilderValueData.java │ ├── BuilderWithAccessors.java │ ├── BuilderWithAccessorsWithSetterPrefix.java │ ├── BuilderWithBuilderClassName.java │ ├── BuilderWithBuilderClassNameOnConstructor.java │ ├── BuilderWithDefaultInnerFields.java │ ├── BuilderWithDeprecatedField.java │ ├── BuilderWithDeprecatedParam.java │ ├── BuilderWithExistingBuilderClass.java │ ├── BuilderWithFieldAccessors.java │ ├── BuilderWithNoBuilderMethod.java │ ├── BuilderWithSetterPrefixAndExistedMethods.java │ ├── BuilderWithToBuilder.java │ ├── BuilderWithToBuilderOnClass.java │ ├── BuilderWithToBuilderOnConstructor.java │ ├── BuilderWithToBuilderOnMethod.java │ ├── BuilderWithTolerate.java │ ├── BuilderWithXArgsConstructor.java │ ├── MultipleMethodBuilderWithExistedClass.java │ ├── ObjectApiResponse.java │ └── Singular │ │ └── Generic │ │ ├── Guava │ │ ├── SingularGuavaBiMap.java │ │ ├── SingularGuavaCollection.java │ │ ├── SingularGuavaList.java │ │ ├── SingularGuavaMap.java │ │ ├── SingularGuavaSet.java │ │ ├── SingularGuavaSortedMap.java │ │ ├── SingularGuavaSortedSet.java │ │ └── SingularGuavaTable.java │ │ └── Util │ │ ├── Collection │ │ ├── SingularCollection.java │ │ ├── SingularIterable.java │ │ ├── SingularList.java │ │ ├── SingularNavigableSet.java │ │ ├── SingularSet.java │ │ └── SingularSortedSet.java │ │ └── Map │ │ ├── SingularMap.java │ │ ├── SingularNavigableMap.java │ │ └── SingularSortedMap.java ├── constructors │ ├── AllArgsConstructorStaticNameAccess.java │ ├── ConflictingStaticConstructorNames.java │ ├── ConstructorEnum.java │ ├── Constructors.java │ ├── NoArgsConstructorForced.java │ ├── NoArgsWithDefinedConstructorsIsForced.java │ ├── RequiredArgsConstructorStaticNameAccess.java │ ├── RequiredArgsConstructorWithGeneric136.java │ └── RequiredArgsConstructorWithGeneric157.java ├── data │ ├── DataAndBuilder.java │ ├── DataAndSuperBuilder.java │ ├── DataExtended.java │ ├── DataExtendsRecursive.java │ ├── DataIgnore.java │ ├── DataOnEnum.java │ ├── DataOnLocalClass.java │ ├── DataPlain.java │ ├── DataStaticConstructor.java │ ├── DataStaticConstructor2.java │ ├── DataStaticConstructor3.java │ ├── DataWithGeneric176.java │ ├── DataWithGetter.java │ ├── DataWithGetterNone.java │ └── Klasse663.java ├── delegate │ ├── DelegateAlreadyImplemented.java │ ├── DelegateGenericInterfaceIssue88.java │ ├── DelegateGenerics.java │ ├── DelegateOnGetter.java │ ├── DelegateOnGetterNone.java │ ├── DelegateOnMethods.java │ ├── DelegateRecursion.java │ ├── DelegateTypesAndExcludes.java │ ├── DelegateWithDeprecated.java │ ├── DelegateWithException.java │ ├── DelegateWithVarargs.java │ └── DelegateWithVarargs2.java ├── equalsandhashcode │ ├── EqualsAndHashCode.java │ ├── EqualsAndHashCodeAutoExclude.java │ ├── EqualsAndHashCodeConfigKeys1.java │ ├── EqualsAndHashCodeConfigKeys2.java │ ├── EqualsAndHashCodeExplicitEmptyOf.java │ ├── EqualsAndHashCodeExplicitInclude.java │ ├── EqualsAndHashCodeExplicitOfAndExclude.java │ ├── EqualsAndHashCodeNestedShadow.java │ ├── EqualsAndHashCodeNewStyle.java │ ├── EqualsAndHashCodeOfAndExclude.java │ ├── EqualsAndHashCodeWithExistingMethods.java │ ├── EqualsAndHashCodeWithGenericsOnInners.java │ ├── EqualsAndHashCodeWithGenericsOnInnersInInterfaces.java │ ├── EqualsAndHashCodeWithNamedExistingMethods.java │ ├── EqualsAndHashCodeWithOnParam.java │ └── EqualsAndHashCodeWithSomeExistingMethods.java ├── fieldnameconstants │ ├── FieldNameConstantsBasic.java │ ├── FieldNameConstantsEnum.java │ ├── FieldNameConstantsHandrolled.java │ ├── FieldNameConstantsOldBasic.java │ └── FieldNameConstantsOnRecord.java ├── getter │ ├── ClassNamedAfterGetter.java │ ├── CommentsInterspersed.java │ ├── GetterAccessLevel.java │ ├── GetterAlreadyExists.java │ ├── GetterBoolean.java │ ├── GetterDeprecated.java │ ├── GetterEnum.java │ ├── GetterLazy.java │ ├── GetterLazyBoolean.java │ ├── GetterLazyEahcToString.java │ ├── GetterLazyInvalid.java │ ├── GetterLazyNative.java │ ├── GetterNone.java │ ├── GetterOnClass.java │ ├── GetterOnMethod.java │ ├── GetterOnMethodErrors.java │ ├── GetterOnMethodErrors2.java │ ├── GetterOnStatic.java │ ├── GetterPlain.java │ ├── GetterWithDollar.java │ ├── MultiFieldGetter.java │ └── TrickyTypeResolution.java ├── jacksonized │ ├── JacksonBuilderSingular.java │ ├── JacksonJsonProperty.java │ ├── JacksonizedBuilderSimple.java │ ├── JacksonizedSuperBuilderSimple.java │ └── JacksonizedSuperBuilderWithJsonDeserialize.java ├── logger │ ├── LoggerCommons.java │ ├── LoggerFlogger.java │ ├── LoggerJBossLog.java │ ├── LoggerJul.java │ ├── LoggerLog4j.java │ ├── LoggerLog4j2.java │ ├── LoggerSlf4j.java │ ├── LoggerSlf4jAlreadyExists.java │ ├── LoggerSlf4jOnNonType.java │ ├── LoggerSlf4jTypes.java │ ├── LoggerSlf4jWithPackage.java │ └── LoggerXSlf4j.java ├── setter │ ├── SetterAccessLevel.java │ ├── SetterAlreadyExists.java │ ├── SetterDeprecated.java │ ├── SetterOnClass.java │ ├── SetterOnMethodOnParam.java │ ├── SetterOnStatic.java │ ├── SetterPlain.java │ └── SetterWithDollar.java ├── standardexception │ └── StandardExceptions.java ├── superbuilder │ ├── Singular │ │ └── Generic │ │ │ ├── Guava │ │ │ ├── SingularGuavaBiMap.java │ │ │ ├── SingularGuavaCollection.java │ │ │ ├── SingularGuavaList.java │ │ │ ├── SingularGuavaMap.java │ │ │ ├── SingularGuavaSet.java │ │ │ ├── SingularGuavaSortedMap.java │ │ │ ├── SingularGuavaSortedSet.java │ │ │ └── SingularGuavaTable.java │ │ │ └── Util │ │ │ ├── Collection │ │ │ ├── SingularCollection.java │ │ │ ├── SingularIterable.java │ │ │ ├── SingularList.java │ │ │ ├── SingularNavigableSet.java │ │ │ ├── SingularSet.java │ │ │ └── SingularSortedSet.java │ │ │ └── Map │ │ │ ├── SingularMap.java │ │ │ ├── SingularNavigableMap.java │ │ │ └── SingularSortedMap.java │ ├── SuperBuilderAbstract.java │ ├── SuperBuilderAbstractToBuilder.java │ ├── SuperBuilderBasic.java │ ├── SuperBuilderBasicToBuilder.java │ ├── SuperBuilderCustomized.java │ ├── SuperBuilderSingularAnnotatedTypes.java │ ├── SuperBuilderWithCustomBuilderMethod.java │ ├── SuperBuilderWithDefaults.java │ ├── SuperBuilderWithGenerics.java │ ├── SuperBuilderWithGenerics2.java │ ├── SuperBuilderWithGenericsAndToBuilder.java │ └── SuperBuilderWithNonNull.java ├── tolerate │ ├── TolerateTest.java │ └── WitherTolerateTest.java ├── tostring │ ├── ToStringAutoExclude.java │ ├── ToStringExplicitEmptyOf.java │ ├── ToStringExplicitInclude.java │ ├── ToStringExplicitOfAndExclude.java │ ├── ToStringInner.java │ ├── ToStringNewStyle.java │ ├── ToStringPlain.java │ ├── ToStringSimpleClassName.java │ └── ToStringWithNamedExistingMethods.java ├── utilityclass │ └── UtilityClassPlain.java ├── val │ ├── TrickyTypeResolution2.java │ ├── ValComplex.java │ ├── ValErrors.java │ ├── ValInBasicFor.java │ ├── ValInFor.java │ ├── ValInMultiDeclaration.java │ ├── ValInTryWithResources.java │ ├── ValLessSimple.java │ ├── ValLub.java │ ├── ValOutersWithGenerics.java │ ├── ValRawType.java │ ├── ValSimple.java │ ├── ValWeirdTypes.java │ └── ValWithLabel.java ├── value │ ├── ValueAndBuilder93.java │ ├── ValueAndWither.java │ ├── ValueAndWitherAndRequiredConstructor.java │ ├── ValueBuilder.java │ ├── ValueIssue78.java │ ├── ValueIssue94.java │ ├── ValuePlain.java │ ├── ValueStarImport.java │ ├── ValueStaticConstructor.java │ ├── ValueWithGeneric176.java │ ├── ValueWithNonDefaultConstructor.java │ └── ValueWithPackagePrivate.java ├── with │ ├── WithAlreadyExists.java │ ├── WithAndAllArgsConstructor.java │ ├── WithAndBuilderDefaultOnFieldAndValueOnClass.java │ ├── WithInnerAnnotation.java │ ├── WithMethodAbstract.java │ ├── WithMethodMarkedDeprecated.java │ ├── WithOnClass.java │ ├── WithOnStatic.java │ ├── WithPlain.java │ ├── WithWithDollar.java │ ├── WithWithGenerics.java │ ├── WithWithTypeAnnos.java │ ├── WitherAccessLevel.java │ └── WitherLegacyStar.java └── wither │ ├── WitherAccessLevel.java │ ├── WitherAlreadyExists.java │ ├── WitherAndAccessors.java │ ├── WitherAndAllArgsConstructor.java │ ├── WitherDeprecated.java │ ├── WitherOnClass.java │ ├── WitherOnStatic.java │ ├── WitherPlain.java │ ├── WitherWithAbstract.java │ ├── WitherWithDollar.java │ └── WitherWithGenerics.java ├── augment ├── exception │ └── Error526.java └── modifier │ ├── FieldDefaultsFinal.java │ ├── FieldDefaultsFinalFalse.java │ ├── FieldDefaultsNone.java │ ├── FieldDefaultsPrivate.java │ ├── FieldDefaultsProtected.java │ ├── FieldDefaultsPublic.java │ ├── FieldDefaultsPublicWithPackagePrivate.java │ ├── FieldDefaultsStaticFinal.java │ ├── FieldDefaultsStaticPrivate.java │ ├── FieldDefaultsWithExplicitModifier.java │ ├── FieldDefaultsWithNonFinal.java │ ├── FieldDefaultsWithUtilityClass.java │ ├── UtilityClassModifiersField.java │ ├── UtilityClassModifiersInnerClass.java │ ├── UtilityClassModifiersMethod.java │ ├── ValModifiers.java │ ├── ValueModifiers.java │ ├── ValueModifiersStatic.java │ ├── VarModifiers.java │ └── VarModifiersEditing.java ├── before ├── CleanupName.java ├── CleanupPlain.java ├── ExtensionMethodPlain.java ├── FieldDefaults.java ├── FieldDefaultsNoop.java ├── InjectField.java ├── MixGetterVal.java ├── NonNullOnParameter.java ├── NonNullPlain.java ├── SimpleTypeResolution.java ├── SneakyThrowsMultiple.java ├── SneakyThrowsPlain.java ├── SneakyThrowsSingle.java ├── SynchronizedName.java ├── SynchronizedNameNoSuchField.java ├── SynchronizedNameStaticToInstanceRef.java ├── SynchronizedPlain.java ├── TestOnX.java ├── accessors │ ├── Accessors.java │ ├── AccessorsCascade.java │ └── AccessorsMakeFinal.java ├── builder │ ├── BuilderAndAllArgsConstructor.java │ ├── BuilderComplex.java │ ├── BuilderConstructorException.java │ ├── BuilderExample.java │ ├── BuilderExampleCustomized.java │ ├── BuilderGenericsOnConstructor.java │ ├── BuilderInstanceMethod.java │ ├── BuilderMethodException.java │ ├── BuilderMultipleConstructorException.java │ ├── BuilderOnRecord.java │ ├── BuilderPredefined.java │ ├── BuilderSimple.java │ ├── BuilderSimpleProtected.java │ ├── BuilderSingularGuavaListsSets.java │ ├── BuilderSingularGuavaMaps.java │ ├── BuilderSingularLists.java │ ├── BuilderSingularMaps.java │ ├── BuilderSingularNoAuto.java │ ├── BuilderSingularRedirectToGuava.java │ ├── BuilderSingularSets.java │ ├── BuilderSingularSetsWithSetterPrefix.java │ ├── BuilderSingularWithPrefixes.java │ ├── BuilderValueData.java │ ├── BuilderWithAccessors.java │ ├── BuilderWithAccessorsWithSetterPrefix.java │ ├── BuilderWithBuilderClassName.java │ ├── BuilderWithBuilderClassNameOnConstructor.java │ ├── BuilderWithDefaultInnerFields.java │ ├── BuilderWithDeprecatedField.java │ ├── BuilderWithDeprecatedParam.java │ ├── BuilderWithExistingBuilderClass.java │ ├── BuilderWithFieldAccessors.java │ ├── BuilderWithNoBuilderMethod.java │ ├── BuilderWithSetterPrefixAndExistedMethods.java │ ├── BuilderWithToBuilder.java │ ├── BuilderWithToBuilderOnClass.java │ ├── BuilderWithToBuilderOnConstructor.java │ ├── BuilderWithToBuilderOnMethod.java │ ├── BuilderWithTolerate.java │ ├── BuilderWithXArgsConstructor.java │ ├── MultipleMethodBuilderWithExistedClass.java │ ├── ObjectApiResponse.java │ └── Singular │ │ └── Generic │ │ ├── Guava │ │ ├── SingularGuavaBiMap.java │ │ ├── SingularGuavaCollection.java │ │ ├── SingularGuavaList.java │ │ ├── SingularGuavaMap.java │ │ ├── SingularGuavaSet.java │ │ ├── SingularGuavaSortedMap.java │ │ ├── SingularGuavaSortedSet.java │ │ └── SingularGuavaTable.java │ │ └── Util │ │ ├── Collection │ │ ├── SingularCollection.java │ │ ├── SingularIterable.java │ │ ├── SingularList.java │ │ ├── SingularNavigableSet.java │ │ ├── SingularSet.java │ │ └── SingularSortedSet.java │ │ └── Map │ │ ├── SingularMap.java │ │ ├── SingularNavigableMap.java │ │ └── SingularSortedMap.java ├── constructors │ ├── AllArgsConstructorStaticNameAccess.java │ ├── ConflictingStaticConstructorNames.java │ ├── ConstructorEnum.java │ ├── Constructors.java │ ├── NoArgsConstructorForced.java │ ├── NoArgsWithDefinedConstructorsIsForced.java │ ├── RequiredArgsConstructorStaticNameAccess.java │ ├── RequiredArgsConstructorWithGeneric136.java │ └── RequiredArgsConstructorWithGeneric157.java ├── data │ ├── DataAndBuilder.java │ ├── DataAndSuperBuilder.java │ ├── DataExtended.java │ ├── DataExtendsRecursive.java │ ├── DataIgnore.java │ ├── DataOnEnum.java │ ├── DataOnLocalClass.java │ ├── DataPlain.java │ ├── DataStaticConstructor.java │ ├── DataStaticConstructor2.java │ ├── DataStaticConstructor3.java │ ├── DataWithGeneric176.java │ ├── DataWithGetter.java │ ├── DataWithGetterNone.java │ └── Klasse663.java ├── delegate │ ├── DelegateAlreadyImplemented.java │ ├── DelegateGenericInterfaceIssue88.java │ ├── DelegateGenerics.java │ ├── DelegateOnGetter.java │ ├── DelegateOnGetterNone.java │ ├── DelegateOnMethods.java │ ├── DelegateOnStatic.java │ ├── DelegateRecursion.java │ ├── DelegateTypesAndExcludes.java │ ├── DelegateWithDeprecated.java │ ├── DelegateWithException.java │ ├── DelegateWithVarargs.java │ └── DelegateWithVarargs2.java ├── equalsandhashcode │ ├── EqualsAndHashCode.java │ ├── EqualsAndHashCodeAutoExclude.java │ ├── EqualsAndHashCodeConfigKeys1.java │ ├── EqualsAndHashCodeConfigKeys2.java │ ├── EqualsAndHashCodeExplicitEmptyOf.java │ ├── EqualsAndHashCodeExplicitInclude.java │ ├── EqualsAndHashCodeExplicitOfAndExclude.java │ ├── EqualsAndHashCodeNestedShadow.java │ ├── EqualsAndHashCodeNewStyle.java │ ├── EqualsAndHashCodeOfAndExclude.java │ ├── EqualsAndHashCodeWithExistingMethods.java │ ├── EqualsAndHashCodeWithGenericsOnInners.java │ ├── EqualsAndHashCodeWithGenericsOnInnersInInterfaces.java │ ├── EqualsAndHashCodeWithNamedExistingMethods.java │ ├── EqualsAndHashCodeWithOnParam.java │ └── EqualsAndHashCodeWithSomeExistingMethods.java ├── fieldnameconstants │ ├── FieldNameConstantsBasic.java │ ├── FieldNameConstantsEnum.java │ ├── FieldNameConstantsHandrolled.java │ ├── FieldNameConstantsOldBasic.java │ └── FieldNameConstantsOnRecord.java ├── getter │ ├── ClassNamedAfterGetter.java │ ├── CommentsInterspersed.java │ ├── GetterAccessLevel.java │ ├── GetterAlreadyExists.java │ ├── GetterBoolean.java │ ├── GetterDeprecated.java │ ├── GetterEnum.java │ ├── GetterLazy.java │ ├── GetterLazyBoolean.java │ ├── GetterLazyEahcToString.java │ ├── GetterLazyInvalid.java │ ├── GetterLazyNative.java │ ├── GetterNone.java │ ├── GetterOnClass.java │ ├── GetterOnMethod.java │ ├── GetterOnMethodErrors.java │ ├── GetterOnMethodErrors2.java │ ├── GetterOnStatic.java │ ├── GetterPlain.java │ ├── GetterWithDollar.java │ ├── MultiFieldGetter.java │ └── TrickyTypeResolution.java ├── jacksonized │ ├── JacksonBuilderSingular.java │ ├── JacksonJsonProperty.java │ ├── JacksonizedBuilderSimple.java │ ├── JacksonizedSuperBuilderSimple.java │ └── JacksonizedSuperBuilderWithJsonDeserialize.java ├── logger │ ├── LoggerCommons.java │ ├── LoggerFlogger.java │ ├── LoggerJBossLog.java │ ├── LoggerJul.java │ ├── LoggerLog4j.java │ ├── LoggerLog4j2.java │ ├── LoggerSlf4j.java │ ├── LoggerSlf4jAlreadyExists.java │ ├── LoggerSlf4jOnNonType.java │ ├── LoggerSlf4jTypes.java │ ├── LoggerSlf4jWithPackage.java │ └── LoggerXSlf4j.java ├── setter │ ├── SetterAccessLevel.java │ ├── SetterAlreadyExists.java │ ├── SetterDeprecated.java │ ├── SetterOnClass.java │ ├── SetterOnMethodOnParam.java │ ├── SetterOnStatic.java │ ├── SetterPlain.java │ └── SetterWithDollar.java ├── standardexception │ └── StandardExceptions.java ├── superbuilder │ ├── Singular │ │ └── Generic │ │ │ ├── Guava │ │ │ ├── SingularGuavaBiMap.java │ │ │ ├── SingularGuavaCollection.java │ │ │ ├── SingularGuavaList.java │ │ │ ├── SingularGuavaMap.java │ │ │ ├── SingularGuavaSet.java │ │ │ ├── SingularGuavaSortedMap.java │ │ │ ├── SingularGuavaSortedSet.java │ │ │ └── SingularGuavaTable.java │ │ │ └── Util │ │ │ ├── Collection │ │ │ ├── SingularCollection.java │ │ │ ├── SingularIterable.java │ │ │ ├── SingularList.java │ │ │ ├── SingularNavigableSet.java │ │ │ ├── SingularSet.java │ │ │ └── SingularSortedSet.java │ │ │ └── Map │ │ │ ├── SingularMap.java │ │ │ ├── SingularNavigableMap.java │ │ │ └── SingularSortedMap.java │ ├── SuperBuilderAbstract.java │ ├── SuperBuilderAbstractToBuilder.java │ ├── SuperBuilderBasic.java │ ├── SuperBuilderBasicToBuilder.java │ ├── SuperBuilderCustomized.java │ ├── SuperBuilderSingularAnnotatedTypes.java │ ├── SuperBuilderWithCustomBuilderMethod.java │ ├── SuperBuilderWithDefaults.java │ ├── SuperBuilderWithGenerics.java │ ├── SuperBuilderWithGenerics2.java │ ├── SuperBuilderWithGenericsAndToBuilder.java │ └── SuperBuilderWithNonNull.java ├── tolerate │ ├── TolerateTest.java │ └── WitherTolerateTest.java ├── tostring │ ├── ToStringAutoExclude.java │ ├── ToStringExplicitEmptyOf.java │ ├── ToStringExplicitInclude.java │ ├── ToStringExplicitOfAndExclude.java │ ├── ToStringInner.java │ ├── ToStringNewStyle.java │ ├── ToStringPlain.java │ ├── ToStringSimpleClassName.java │ ├── ToStringWithConstantRefInOf.java │ └── ToStringWithNamedExistingMethods.java ├── utilityclass │ └── UtilityClassPlain.java ├── val │ ├── TrickyTypeResolution2.java │ ├── ValComplex.java │ ├── ValErrors.java │ ├── ValInBasicFor.java │ ├── ValInFor.java │ ├── ValInMultiDeclaration.java │ ├── ValInTryWithResources.java │ ├── ValLessSimple.java │ ├── ValLub.java │ ├── ValOutersWithGenerics.java │ ├── ValRawType.java │ ├── ValSimple.java │ ├── ValWeirdTypes.java │ └── ValWithLabel.java ├── value │ ├── ValueAndBuilder93.java │ ├── ValueAndWither.java │ ├── ValueAndWitherAndRequiredConstructor.java │ ├── ValueBuilder.java │ ├── ValueIssue78.java │ ├── ValueIssue94.java │ ├── ValuePlain.java │ ├── ValueStarImport.java │ ├── ValueStaticConstructor.java │ ├── ValueWithGeneric176.java │ ├── ValueWithNonDefaultConstructor.java │ └── ValueWithPackagePrivate.java ├── with │ ├── WithAlreadyExists.java │ ├── WithAndAllArgsConstructor.java │ ├── WithAndBuilderDefaultOnFieldAndValueOnClass.java │ ├── WithInnerAnnotation.java │ ├── WithMethodAbstract.java │ ├── WithMethodMarkedDeprecated.java │ ├── WithOnClass.java │ ├── WithOnStatic.java │ ├── WithPlain.java │ ├── WithWithDollar.java │ ├── WithWithGenerics.java │ ├── WithWithTypeAnnos.java │ ├── WitherAccessLevel.java │ └── WitherLegacyStar.java └── wither │ ├── WitherAccessLevel.java │ ├── WitherAlreadyExists.java │ ├── WitherAndAccessors.java │ ├── WitherAndAllArgsConstructor.java │ ├── WitherDeprecated.java │ ├── WitherOnClass.java │ ├── WitherOnStatic.java │ ├── WitherPlain.java │ ├── WitherWithAbstract.java │ ├── WitherWithDollar.java │ └── WitherWithGenerics.java ├── configsystem ├── accessors │ ├── capitalization │ │ ├── after │ │ │ ├── BuilderWithJavaBeansSpecCapitalization.java │ │ │ ├── GetterWithJavaBeansSpecCapitalization.java │ │ │ ├── SetterWithJavaBeansSpecCapitalization.java │ │ │ ├── ValueWithJavaBeansSpecCapitalization.java │ │ │ └── WithWithJavaBeansSpecCapitalization.java │ │ └── before │ │ │ ├── BuilderWithJavaBeansSpecCapitalization.java │ │ │ ├── GetterWithJavaBeansSpecCapitalization.java │ │ │ ├── SetterWithJavaBeansSpecCapitalization.java │ │ │ ├── ValueWithJavaBeansSpecCapitalization.java │ │ │ ├── WithWithJavaBeansSpecCapitalization.java │ │ │ └── lombok.config │ ├── chain │ │ ├── after │ │ │ ├── GetterSetterClassAnnotationOverwriteTest.java │ │ │ ├── GetterSetterClassTest.java │ │ │ ├── GetterSetterFieldAnnotationOverwriteTest.java │ │ │ ├── GetterSetterFieldTest.java │ │ │ └── GetterSetterWithoutAccessorsAnnotationTest.java │ │ └── before │ │ │ ├── GetterSetterClassAnnotationOverwriteTest.java │ │ │ ├── GetterSetterClassTest.java │ │ │ ├── GetterSetterFieldAnnotationOverwriteTest.java │ │ │ ├── GetterSetterFieldTest.java │ │ │ ├── GetterSetterWithoutAccessorsAnnotationTest.java │ │ │ └── lombok.config │ ├── fluent │ │ ├── after │ │ │ ├── GetterSetterClassAnnotationOverwriteTest.java │ │ │ ├── GetterSetterClassTest.java │ │ │ ├── GetterSetterFieldAnnotationOverwriteTest.java │ │ │ ├── GetterSetterFieldTest.java │ │ │ └── GetterSetterWithoutAccessorsAnnotationTest.java │ │ └── before │ │ │ ├── GetterSetterClassAnnotationOverwriteTest.java │ │ │ ├── GetterSetterClassTest.java │ │ │ ├── GetterSetterFieldAnnotationOverwriteTest.java │ │ │ ├── GetterSetterFieldTest.java │ │ │ ├── GetterSetterWithoutAccessorsAnnotationTest.java │ │ │ └── lombok.config │ ├── makefinal │ │ ├── after │ │ │ └── AccessorsMakeFinalLombokConfig.java │ │ └── before │ │ │ ├── AccessorsMakeFinalLombokConfig.java │ │ │ └── lombok.config │ ├── prefix │ │ ├── after │ │ │ ├── GetterSetterClassTest.java │ │ │ └── GetterSetterWithoutAccessorsAnnotationClassTest.java │ │ └── before │ │ │ ├── GetterSetterClassTest.java │ │ │ ├── GetterSetterWithoutAccessorsAnnotationClassTest.java │ │ │ └── lombok.config │ └── superbuilder │ │ ├── after │ │ └── SuperBuilderWithPrefixes.java │ │ └── before │ │ ├── SuperBuilderWithPrefixes.java │ │ └── lombok.config ├── builder │ ├── className │ │ ├── after │ │ │ └── BuilderWithConfiguredClassName.java │ │ └── before │ │ │ ├── BuilderWithConfiguredClassName.java │ │ │ └── lombok.config │ └── jacksonized │ │ ├── after │ │ └── JacksonizedBuilderComplex.java │ │ └── before │ │ ├── JacksonizedBuilderComplex.java │ │ └── lombok.config ├── completion │ ├── LoggerCompletionTest.java │ └── lombok.config ├── constructor ├── data │ └── extraPrivate │ │ ├── after │ │ ├── DataNegativeTest.java │ │ └── DataTest.java │ │ └── before │ │ ├── DataNegativeTest.java │ │ ├── DataTest.java │ │ └── lombok.config ├── equalsandhashcode │ ├── callSuper │ │ ├── after │ │ │ ├── WithSuperTest.java │ │ │ └── WithoutSuperTest.java │ │ └── before │ │ │ ├── WithSuperTest.java │ │ │ ├── WithoutSuperTest.java │ │ │ └── lombok.config │ └── doNotUseGetters │ │ ├── after │ │ ├── AnnotationOverwriteTest.java │ │ └── SomeTest.java │ │ └── before │ │ ├── AnnotationOverwriteTest.java │ │ ├── SomeTest.java │ │ └── lombok.config ├── fieldDefaults │ ├── defaultFinal │ │ ├── after │ │ │ ├── DefaultFinalFieldTest.java │ │ │ ├── DefaultFinalFieldWithFieldDefaultsTest.java │ │ │ ├── DefaultFinalFieldWithNonFinalTest.java │ │ │ └── DefaultFinalFieldWithUnrelatedFieldDefaultsTest.java │ │ └── before │ │ │ ├── DefaultFinalFieldTest.java │ │ │ ├── DefaultFinalFieldWithFieldDefaultsTest.java │ │ │ ├── DefaultFinalFieldWithNonFinalTest.java │ │ │ ├── DefaultFinalFieldWithUnrelatedFieldDefaultsTest.java │ │ │ └── lombok.config │ └── defaultPrivate │ │ ├── after │ │ ├── DefaultPrivateFieldTest.java │ │ ├── DefaultPrivateFieldWithFieldDefaultsTest.java │ │ ├── DefaultPrivateFieldWithPackagePrivateTest.java │ │ └── DefaultPrivateFieldWithUnrelatedFieldDefaultsTest.java │ │ └── before │ │ ├── DefaultPrivateFieldTest.java │ │ ├── DefaultPrivateFieldWithFieldDefaultsTest.java │ │ ├── DefaultPrivateFieldWithPackagePrivateTest.java │ │ ├── DefaultPrivateFieldWithUnrelatedFieldDefaultsTest.java │ │ └── lombok.config ├── fieldnameconstants │ ├── configuration │ │ ├── after │ │ │ └── FieldNameConstantsConfigKeys.java │ │ └── before │ │ │ ├── FieldNameConstantsConfigKeys.java │ │ │ └── lombok.config │ └── uppercase │ │ ├── after │ │ └── FieldNameConstantsUppercased.java │ │ └── before │ │ ├── FieldNameConstantsUppercased.java │ │ └── lombok.config ├── getter │ └── noIsPrefix │ │ ├── after │ │ ├── GetterClassTest.java │ │ └── GetterFieldTest.java │ │ └── before │ │ ├── GetterClassTest.java │ │ ├── GetterFieldTest.java │ │ └── lombok.config ├── log │ ├── customComplex │ │ ├── after │ │ │ └── CustomLogTest.java │ │ └── before │ │ │ ├── CustomLogTest.java │ │ │ └── lombok.config │ ├── customSimple │ │ ├── after │ │ │ └── CustomLogTest.java │ │ └── before │ │ │ ├── CustomLogTest.java │ │ │ └── lombok.config │ ├── fieldIsStatic │ │ ├── after │ │ │ ├── CommonsLogTest.java │ │ │ ├── FloggerTest.java │ │ │ ├── JBossLogTest.java │ │ │ ├── Log4j2Test.java │ │ │ ├── Log4jTest.java │ │ │ ├── LogTest.java │ │ │ ├── Slf4jTest.java │ │ │ ├── Slf4jWithReqConstructor.java │ │ │ └── XSlf4jTest.java │ │ └── before │ │ │ ├── CommonsLogTest.java │ │ │ ├── FloggerTest.java │ │ │ ├── JBossLogTest.java │ │ │ ├── Log4j2Test.java │ │ │ ├── Log4jTest.java │ │ │ ├── LogTest.java │ │ │ ├── Slf4jTest.java │ │ │ ├── Slf4jWithReqConstructor.java │ │ │ ├── XSlf4jTest.java │ │ │ └── lombok.config │ └── fieldName │ │ ├── after │ │ ├── CommonsLogTest.java │ │ ├── FloggerTest.java │ │ ├── JBossLogTest.java │ │ ├── Log4j2Test.java │ │ ├── Log4jTest.java │ │ ├── LogTest.java │ │ ├── Slf4jTest.java │ │ └── XSlf4jTest.java │ │ └── before │ │ ├── CommonsLogTest.java │ │ ├── FloggerTest.java │ │ ├── JBossLogTest.java │ │ ├── Log4j2Test.java │ │ ├── Log4jTest.java │ │ ├── LogTest.java │ │ ├── Slf4jTest.java │ │ ├── XSlf4jTest.java │ │ └── lombok.config ├── lombok.config ├── tostring │ ├── callSuper │ │ ├── after │ │ │ ├── AnnotationOverwriteTest.java │ │ │ ├── SomeTestWithSuper.java │ │ │ └── SomeTestWithoutSuper.java │ │ └── before │ │ │ ├── AnnotationOverwriteTest.java │ │ │ ├── SomeTestWithSuper.java │ │ │ ├── SomeTestWithoutSuper.java │ │ │ └── lombok.config │ ├── configuration │ │ ├── after │ │ │ └── ToStringConfiguration.java │ │ └── before │ │ │ ├── ToStringConfiguration.java │ │ │ └── lombok.config │ ├── doNotUseGetters │ │ ├── after │ │ │ ├── AnnotationOverwriteTest.java │ │ │ └── SomeTest.java │ │ └── before │ │ │ ├── AnnotationOverwriteTest.java │ │ │ ├── SomeTest.java │ │ │ └── lombok.config │ ├── includeFieldNames │ │ ├── after │ │ │ ├── AnnotationOverwriteTest.java │ │ │ └── SomeTest.java │ │ └── before │ │ │ ├── AnnotationOverwriteTest.java │ │ │ ├── SomeTest.java │ │ │ └── lombok.config │ └── onlyExplicitlyIncluded │ │ ├── after │ │ └── SomeTest.java │ │ └── before │ │ ├── SomeTest.java │ │ └── lombok.config └── value │ └── extraPrivate │ ├── after │ └── ValueTest.java │ └── before │ ├── ValueTest.java │ └── lombok.config ├── extension ├── CheckedExeptionQuickFixExample.java └── CheckedMultipleExceptionQuickFixExample.java ├── highlighting ├── BuilderJacksonized.java ├── BuilderWithDefaultRedundantInitializer.java ├── BuilderWithPredefinedBuilderClassMethods.java ├── FieldNameConstantsExample.java ├── GetterLazyInvocationProduceNPE.java ├── GetterLazyVariableNotInitialized.java ├── LombokBasics.java ├── LombokEqualsAndHashCode.java ├── LombokStaticVars.java ├── OnXExample.java ├── ValueSealedInterface.java └── extensionMethods │ ├── Array.java │ ├── Assignability.java │ ├── ConflictingOwnMethod.java │ ├── ExtensionMethodAutoboxing.java │ ├── ExtensionMethodFunctional.java │ ├── ExtensionMethodNames.java │ ├── ExtensionMethodPlain.java │ ├── ExtensionMethodSuppress.java │ ├── ExtensionMethodVarargs.java │ └── NestedExtensions.java ├── highlights ├── builderDefault │ ├── BuilderDefaultHighlighting.java │ └── BuilderDefaultWithoutBuilderAnnotation.java ├── onRecord │ └── InvalidLombokAnnotationsOnRecord.java ├── sneakyThrows │ ├── SneakThrowsDoesntCatchCaughtException.java │ ├── SneakThrowsDoesntCatchCaughtExceptionNested.java │ ├── SneakThrowsDoesntCatchExceptionFromSuperConstructor.java │ └── SneakThrowsDoesntCatchExceptionFromThisConstructor.java ├── staticConstructor │ ├── DataDto.java │ └── ValueDto.java ├── superBuilder │ └── SuperBuilderOnInnerClass.java └── with │ └── WithOnRecord.java ├── inspection ├── autoCloseableResource │ └── AutoCloseableCleanup.java ├── builder │ ├── BuilderConstructorAnnotations.java │ ├── BuilderDefaultValue.java │ ├── BuilderDefaultValue193.java │ ├── BuilderDefaultsWarnings.java │ ├── BuilderInvalidIdentifier.java │ ├── BuilderInvalidUse.java │ ├── BuilderObtainVia.java │ ├── BuilderRightType.java │ └── BuilderSingularInvalidOnArray.java ├── canBeFinalInspection │ ├── ClassNormal.java │ ├── ClassWithData.java │ ├── ClassWithFieldSetter.java │ ├── ClassWithGetter.java │ ├── ClassWithSetter.java │ └── ClassWithValue.java ├── canBeStaticInspection │ └── Default.java ├── cleanup │ ├── CleanupEmptyValue.java │ ├── CleanupExample.java │ ├── CleanupWithoutInitializer.java │ ├── CleanupWrongElement.java │ └── CleanupWrongValue.java ├── defUse │ └── UnusedInitializerBuilderDefault.java ├── defaultConstructor │ ├── ClassWithData.java │ ├── ClassWithJavaConstructor.java │ ├── ClassWithLombokConstructor.java │ ├── ClassWithLombokDefaultConstructor.java │ ├── DataWithParentClassWithoutDefaultConstructor.java │ └── DataWithParentClassWithoutDefaultConstructor771.java ├── delegate │ ├── ConcreteType.java │ ├── DelegateIncludeUnknownMethods.java │ ├── OnMethodWithParameter.java │ ├── OnStaticFieldOrMethod.java │ └── RecursionType.java ├── diverse │ ├── AccessorContract.java │ ├── DataEqualsAndHashCodeOverride.java │ ├── DefaultBuilderFinalValueInspectionIsAlwaysThat.java │ ├── EqualsAndHashCodeCallSuper.java │ ├── ExtensionMethodDfa.java │ ├── Issue37.java │ ├── NoArgsConstructorWithNotNullFieldsShouldBeNotForced.java │ ├── NoArgsConstructorWithRequiredFieldsShouldBeForced.java │ ├── SetterOnFinalField.java │ └── ValInspection.java ├── equalsAndHashCodeCallSuperConfigSkip │ ├── Test.java │ └── lombok.config ├── fielddefaults │ └── EnumClass.java ├── lombokGetterMayBeUsed │ ├── FieldsWithGetter.java │ ├── InstanceAndStaticFields.java │ ├── NoLibrary.java │ ├── ShortMethods.java │ ├── afterAllFields.java │ ├── afterAnnotatedField.java │ ├── afterBooleanField.java │ ├── afterEmptyStatement.java │ ├── afterFieldInInnerClass.java │ ├── afterFinalField.java │ ├── afterFullyQualifiedAnnotation.java │ ├── afterFullyQualifiedThis.java │ ├── afterInstanceField.java │ ├── afterMergeJavaDoc.java │ ├── afterMoveJavaDoc.java │ ├── afterParentherizedValue.java │ ├── afterQualifiedThis.java │ ├── afterReturnTags.java │ ├── afterStaticField.java │ ├── afterStaticFieldWithGetter.java │ ├── afterThisField.java │ ├── afterUppercaseField.java │ ├── beforeAllFields.java │ ├── beforeAnnotatedField.java │ ├── beforeAnnotedMethod.java │ ├── beforeAnotherField.java │ ├── beforeBadField.java │ ├── beforeBooleanField.java │ ├── beforeDifferentType.java │ ├── beforeEmptyStatement.java │ ├── beforeFieldInInnerClass.java │ ├── beforeFinalField.java │ ├── beforeFinalMethod.java │ ├── beforeFullyQualifiedAnnotation.java │ ├── beforeFullyQualifiedThis.java │ ├── beforeInheritedField.java │ ├── beforeInstanceField.java │ ├── beforeMergeJavaDoc.java │ ├── beforeMethodStartingWithDigit.java │ ├── beforeMoveJavaDoc.java │ ├── beforeNoReturn.java │ ├── beforeNonPublicGetter.java │ ├── beforeNonStaticMethod.java │ ├── beforeNotWritableLog.java │ ├── beforeOneMethodParameter.java │ ├── beforeParentherizedValue.java │ ├── beforeQualifiedThis.java │ ├── beforeReturnLiteral.java │ ├── beforeReturnTags.java │ ├── beforeSetterMethod.java │ ├── beforeShortMethodName.java │ ├── beforeStaticField.java │ ├── beforeStaticFieldWithGetter.java │ ├── beforeThisField.java │ ├── beforeThrowException.java │ ├── beforeTwoStatements.java │ └── beforeUppercaseField.java ├── lombokSetterMayBeUsed │ ├── FieldsWithSetter.java │ ├── InstanceAndStaticFields.java │ ├── NoLibrary.java │ ├── afterAllFields.java │ ├── afterAnnotatedField.java │ ├── afterBooleanField.java │ ├── afterEmptyStatement.java │ ├── afterFieldInInnerClass.java │ ├── afterFinalField.java │ ├── afterFinalParameter.java │ ├── afterFullyQualifiedAnnotation.java │ ├── afterFullyQualifiedThis.java │ ├── afterInstanceField.java │ ├── afterMergeJavaDoc.java │ ├── afterMoveJavaDoc.java │ ├── afterParamTags.java │ ├── afterParentherizedParameter.java │ ├── afterQualifiedThis.java │ ├── afterStaticField.java │ ├── afterStaticFieldWithSetter.java │ ├── afterThisField.java │ ├── afterUppercaseField.java │ ├── beforeAllFields.java │ ├── beforeAnnotatedField.java │ ├── beforeAnnotedMethod.java │ ├── beforeAnnoyingQualifier.java │ ├── beforeAnotherField.java │ ├── beforeAssignment.java │ ├── beforeBadField.java │ ├── beforeBadOperator.java │ ├── beforeBooleanField.java │ ├── beforeDifferentType.java │ ├── beforeEmptyStatement.java │ ├── beforeFieldInInnerClass.java │ ├── beforeFinalField.java │ ├── beforeFinalMethod.java │ ├── beforeFinalParameter.java │ ├── beforeFullyQualifiedAnnotation.java │ ├── beforeFullyQualifiedThis.java │ ├── beforeGetterMethod.java │ ├── beforeIgnoredParameter.java │ ├── beforeInheritedField.java │ ├── beforeInstanceField.java │ ├── beforeMergeJavaDoc.java │ ├── beforeMethodStartingWithDigit.java │ ├── beforeMoveJavaDoc.java │ ├── beforeNoFieldSet.java │ ├── beforeNonPublicGetter.java │ ├── beforeNonStaticMethod.java │ ├── beforeNotWritableLog.java │ ├── beforeParamTags.java │ ├── beforeParentherizedParameter.java │ ├── beforeQualifiedThis.java │ ├── beforeSetLiteral.java │ ├── beforeShortMethodName.java │ ├── beforeStaticField.java │ ├── beforeStaticFieldWithSetter.java │ ├── beforeThisField.java │ ├── beforeThrowException.java │ ├── beforeTwoParameterMethod.java │ ├── beforeTwoStatements.java │ ├── beforeUppercaseField.java │ ├── beforeVarArgParameter.java │ └── beforeZeroParameterMethod.java ├── onXAnnotation │ ├── ConstructorOnConstructor.java │ ├── GetterOnMethod.java │ └── SetterOnParam.java ├── pointlessBooleanExpression │ └── PointlessBooleanExpressionBuilderDefault.java ├── redundantModifierInspection │ ├── UtilityClassClass.java │ ├── UtilityClassClassWithStaticField.java │ ├── UtilityClassClassWithStaticInnerClass.java │ ├── UtilityClassClassWithStaticMethod.java │ ├── ValClass.java │ ├── ValueClass.java │ ├── ValueClassWithFinalField.java │ └── ValueClassWithPrivateField.java ├── redundantSlf4jDeclaration │ ├── RedundantSlf4jDefinition.after.java │ └── RedundantSlf4jDefinition.java ├── superbuilder │ ├── BuilderDefaultValue.java │ ├── BuilderDefaultValue193.java │ ├── BuilderDefaultsWarnings.java │ ├── BuilderInvalidIdentifier.java │ ├── BuilderInvalidInnerBuilderClass.java │ ├── BuilderInvalidUse.java │ ├── BuilderObtainVia.java │ └── BuilderRightType.java └── synchronized │ ├── SynchronizedTest.java │ └── SynchronizedTypeErrors.java ├── intention ├── replaceLombok │ ├── NotReplaceAbstractGetterFromField.java │ ├── NotReplaceAbstractSetterFromField.java │ ├── NotReplaceIncorrectAccessors.java │ ├── NotReplaceSetterWithAdditionalCode.java │ ├── NotReplaceSetterWithWrongParamFromField.java │ ├── ReplaceAccessorsFromField.java │ ├── ReplaceGetterFromField.java │ ├── ReplaceGetterFromFieldNotCompleteMethod.java │ ├── ReplaceGetterFromMethod.java │ ├── ReplaceGetterFromMethod2.java │ ├── ReplaceGetterFromProtectedMethod.java │ ├── ReplacePackageProtectedAccessorsFromField.java │ ├── ReplacePrivateAccessorsFromField.java │ ├── ReplaceProtectedAccessorsFromField.java │ ├── ReplaceSetterFromField.java │ ├── ReplaceSetterFromFieldNotCompleteMethod.java │ ├── ReplaceSetterFromMethod.java │ ├── ReplaceSetterFromMethod2.java │ └── ReplaceSetterFromProtectedMethod.java ├── synchronized │ ├── JavaSynchronizedMethod.java │ └── JavaSynchronizedStaticMethod.java └── valvar │ ├── replaceExplicitType │ ├── FinalTypeWithVal.java │ ├── TypeWithVar.java │ └── ValAndVar.java │ └── replaceValVar │ ├── ReplaceVal.java │ ├── ReplaceValWithGenerics.java │ └── ReplaceVar.java ├── intentions ├── afterChangeSignature.java └── beforeChangeSignature.java ├── performance └── fieldDefaults │ ├── HugeClass.java │ └── lombok.config ├── postfix ├── issue670 │ └── Issue670.java ├── val │ ├── simpleVal.java │ └── simpleVal_after.java └── varl │ ├── simpleVarl.java │ └── simpleVarl_after.java ├── refactoring ├── DataIssueEvent.java ├── DataIssueEvent_after.java ├── EncapsulateLombokFields.java └── EncapsulateLombokFields_after.java └── usage ├── FieldUsages.java ├── FindUsageAccessors.java ├── FindUsageBuilder.java ├── FindUsageBuilderRecord.java ├── FindUsageDelegateField.java ├── FindUsageDelegateMethod.java ├── FindUsageGetterSetter.java ├── FindUsageSingularBuilder.java ├── FindUsageWither.java └── FindUsageWitherRecord.java /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig: http://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | [*] 7 | indent_style = space 8 | indent_size = 2 9 | end_of_line = lf 10 | charset = utf-8 11 | trim_trailing_whitespace = true 12 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: gradle 4 | directory: "/" 5 | schedule: 6 | interval: daily 7 | time: "04:00" 8 | open-pull-requests-limit: 10 9 | ignore: 10 | - dependency-name: org.jetbrains.intellij 11 | versions: 12 | - 0.7.0 13 | - 0.7.2 14 | - dependency-name: org.jetbrains.grammarkit 15 | versions: 16 | - 2020.3.2 17 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mplushnikov/lombok-intellij-plugin/bee68c16b8b5f83f04577386945bddeaa7b149da/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /lang/src/de/plushnikov/intellij/plugin/language/psi/LombokConfigCleaner.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package de.plushnikov.intellij.plugin.language.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LombokConfigCleaner extends PsiElement { 9 | String getKey(); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /lib/jsr305-3.0.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mplushnikov/lombok-intellij-plugin/bee68c16b8b5f83f04577386945bddeaa7b149da/lib/jsr305-3.0.2.jar -------------------------------------------------------------------------------- /lib/lombok-1.18.18.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mplushnikov/lombok-intellij-plugin/bee68c16b8b5f83f04577386945bddeaa7b149da/lib/lombok-1.18.18.jar -------------------------------------------------------------------------------- /lib/lombok-1.18.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mplushnikov/lombok-intellij-plugin/bee68c16b8b5f83f04577386945bddeaa7b149da/lib/lombok-1.18.2.jar -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | repositories { 3 | gradlePluginPortal() 4 | mavenCentral() 5 | } 6 | } 7 | 8 | rootProject.name = 'lombok-plugin' 9 | -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/action/lombok/LombokDataAction.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.action.lombok; 2 | 3 | public class LombokDataAction extends BaseLombokAction { 4 | 5 | public LombokDataAction() { 6 | super(new LombokDataHandler()); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/action/lombok/LombokEqualsAndHashcodeAction.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.action.lombok; 2 | 3 | public class LombokEqualsAndHashcodeAction extends BaseLombokAction { 4 | 5 | public LombokEqualsAndHashcodeAction() { 6 | super(new LombokEqualsAndHashcodeHandler()); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/action/lombok/LombokGetterAction.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.action.lombok; 2 | 3 | public class LombokGetterAction extends BaseLombokAction { 4 | 5 | public LombokGetterAction() { 6 | super(new LombokGetterHandler()); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/action/lombok/LombokLoggerAction.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.action.lombok; 2 | 3 | public class LombokLoggerAction extends BaseLombokAction { 4 | 5 | public LombokLoggerAction() { 6 | super(new LombokLoggerHandler()); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/action/lombok/LombokSetterAction.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.action.lombok; 2 | 3 | public class LombokSetterAction extends BaseLombokAction { 4 | 5 | public LombokSetterAction() { 6 | super(new LombokSetterHandler()); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/action/lombok/LombokToStringAction.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.action.lombok; 2 | 3 | public class LombokToStringAction extends BaseLombokAction { 4 | 5 | public LombokToStringAction() { 6 | super(new LombokToStringHandler()); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/extension/postfix/LombokValPostfixTemplate.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.extension.postfix; 2 | 3 | public class LombokValPostfixTemplate extends LombokVarValPostfixTemplate { 4 | 5 | public LombokValPostfixTemplate() { 6 | super("val", "lombok.val name = expr", "lombok.val"); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/extension/postfix/LombokVarPostfixTemplate.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.extension.postfix; 2 | 3 | public class LombokVarPostfixTemplate extends LombokVarValPostfixTemplate { 4 | 5 | public LombokVarPostfixTemplate() { 6 | super("varl", "lombok.var name = expr", "lombok.var"); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/language/LombokConfigLanguage.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.language; 2 | 3 | import com.intellij.lang.Language; 4 | 5 | public class LombokConfigLanguage extends Language { 6 | public static final LombokConfigLanguage INSTANCE = new LombokConfigLanguage(); 7 | 8 | private LombokConfigLanguage() { 9 | super("Lombok.Config"); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/language/LombokConfigLexerAdapter.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.language; 2 | 3 | import com.intellij.lexer.FlexAdapter; 4 | 5 | public class LombokConfigLexerAdapter extends FlexAdapter { 6 | public LombokConfigLexerAdapter() { 7 | super(new LombokConfigLexer(null)); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/lombokconfig/LombokNullAnnotationLibrary.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.lombokconfig; 2 | 3 | public interface LombokNullAnnotationLibrary { 4 | String getNonNullAnnotation(); 5 | 6 | String getNullableAnnotation(); 7 | 8 | boolean isTypeUse(); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/processor/LombokPsiElementUsage.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.processor; 2 | 3 | public enum LombokPsiElementUsage { 4 | NONE, USAGE, READ, WRITE, READ_WRITE 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/processor/clazz/ClassProcessor.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.processor.clazz; 2 | 3 | import de.plushnikov.intellij.plugin.processor.Processor; 4 | 5 | /** 6 | * @author Plushnikov Michail 7 | */ 8 | interface ClassProcessor extends Processor { 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/processor/field/FieldProcessor.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.processor.field; 2 | 3 | import de.plushnikov.intellij.plugin.processor.Processor; 4 | 5 | /** 6 | * @author Plushnikov Michail 7 | */ 8 | interface FieldProcessor extends Processor { 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/processor/method/MethodProcessor.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.processor.method; 2 | 3 | import de.plushnikov.intellij.plugin.processor.Processor; 4 | 5 | interface MethodProcessor extends Processor { 6 | } -------------------------------------------------------------------------------- /src/main/java/de/plushnikov/intellij/plugin/provider/LombokUserDataKeys.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.provider; 2 | 3 | import com.intellij.openapi.util.Key; 4 | 5 | import java.util.Collection; 6 | 7 | public final class LombokUserDataKeys { 8 | public static final Key> AUGMENTED_ANNOTATIONS = Key.create("lombok.augmented.annotations"); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/resources/icons/expui/icon-robots.txt: -------------------------------------------------------------------------------- 1 | skip: * -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/DeprecatedLombok.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reports deprecated Lombok annotations and suggests quick-fixes to replace them with the ones promoted to the main package. 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/Lombok.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Offers general inspections for Lombok annotations. 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/RedundantModifiersUtilityClassLombok.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reports unneeded modifiers for classes annotated with @UtilityClass. 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/RedundantModifiersValLombok.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reports unneeded final modifiers before val. 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/RedundantModifiersValueLombok.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reports unneeded modifiers for classes annotated with @Value. 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/RedundantSlf4jDefinition.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reports explicitly defined Slf4j Loggers. The @Slf4j annotation can be used instead. 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceExplicitTypeWithValIntentionAction/after.java.template: -------------------------------------------------------------------------------- 1 | public class X { 2 | void f() { 3 | val FIVE = 5; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceExplicitTypeWithValIntentionAction/before.java.template: -------------------------------------------------------------------------------- 1 | public class X { 2 | void f() { 3 | final int FIVE = 5; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceExplicitTypeWithValIntentionAction/description.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reports declaration statements with explicit types that can use Lombok val instead. 4 |

Available for Java<10.

5 | 6 | 7 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceExplicitTypeWithVarIntentionAction/after.java.template: -------------------------------------------------------------------------------- 1 | public class X { 2 | void a() { 3 | var a = 2; 4 | a++; 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceExplicitTypeWithVarIntentionAction/before.java.template: -------------------------------------------------------------------------------- 1 | public class X { 2 | void a() { 3 | int a = 2; 4 | a++; 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceExplicitTypeWithVarIntentionAction/description.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reports declaration statements with explicit types that can use Lombok var instead. 4 |

Available for Java<10.

5 | 6 | 7 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceSynchronizedWithLombokAction/after.java.template: -------------------------------------------------------------------------------- 1 | import lombok.Synchronized; 2 | 3 | public class X { 4 | 5 | @Synchronized 6 | public void doSomething() { 7 | // do something 8 | } 9 | } -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceSynchronizedWithLombokAction/before.java.template: -------------------------------------------------------------------------------- 1 | public class X { 2 | 3 | public synchronized void doSomething() { 4 | // do something 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceSynchronizedWithLombokAction/description.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Change usage of java synchronized modifiers, and replace it with Lombok's @Synchronized annotation 4 |

See for more details

5 | 6 | 7 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceValWithExplicitTypeIntentionAction/after.java.template: -------------------------------------------------------------------------------- 1 | public class X { 2 | void a() { 3 | final ArrayList arrayList = new ArrayList<>(); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceValWithExplicitTypeIntentionAction/before.java.template: -------------------------------------------------------------------------------- 1 | public class X { 2 | void a() { 3 | val arrayList = new ArrayList(); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceValWithExplicitTypeIntentionAction/description.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reports declaration statements with val that can use the explicit type instead. 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceVarWithExplicitTypeIntentionAction/after.java.template: -------------------------------------------------------------------------------- 1 | public class X { 2 | void a() { 3 | ArrayList arrayList = new ArrayList<>(); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceVarWithExplicitTypeIntentionAction/before.java.template: -------------------------------------------------------------------------------- 1 | public class X { 2 | void a() { 3 | var arrayList = new ArrayList(); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceVarWithExplicitTypeIntentionAction/description.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reports declaration statements with var that can use the explicit type instead. 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceWithLombokAnnotationAction/after.java.template: -------------------------------------------------------------------------------- 1 | public class X { 2 | @lombok.Setter 3 | @lombok.Getter 4 | int field; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ReplaceWithLombokAnnotationAction/before.java.template: -------------------------------------------------------------------------------- 1 | public class X { 2 | int field; 3 | 4 | public int getField() { 5 | return field; 6 | } 7 | 8 | public int setField(int field) { 9 | this.field = field; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LombokValPostfixTemplate/after.java.template: -------------------------------------------------------------------------------- 1 | public class Foo { 2 | void m(Object o) { 3 | lombok.val foo = String.valueOf(123); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LombokValPostfixTemplate/before.java.template: -------------------------------------------------------------------------------- 1 | public class Foo { 2 | void m(Object o) { 3 | String.valueOf(123)$key 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LombokValPostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Introduces a lombok.val variable for an expression. 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LombokVarPostfixTemplate/after.java.template: -------------------------------------------------------------------------------- 1 | public class Foo { 2 | void m(Object o) { 3 | lombok.var foo = String.valueOf(123); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LombokVarPostfixTemplate/before.java.template: -------------------------------------------------------------------------------- 1 | public class Foo { 2 | void m(Object o) { 3 | String.valueOf(123)$key 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LombokVarPostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Introduces a lombok.var variable for an expression. 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/test/java/de/plushnikov/intellij/plugin/highlights/WithHighlightTest.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.highlights; 2 | 3 | public class WithHighlightTest extends AbstractLombokHighlightsTest { 4 | 5 | @Override 6 | protected String getBasePath() { 7 | return super.getBasePath() + "/with"; 8 | } 9 | 10 | public void testWithOnRecord() { 11 | doTest(); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/test/java/de/plushnikov/intellij/plugin/lombokconfig/MyProject.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.lombokconfig; 2 | 3 | import com.intellij.openapi.project.Project; 4 | import com.intellij.openapi.util.UserDataHolderEx; 5 | 6 | public interface MyProject extends Project, UserDataHolderEx { 7 | } 8 | -------------------------------------------------------------------------------- /src/test/java/de/plushnikov/intellij/plugin/processor/StandardExceptionTest.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.processor; 2 | 3 | import de.plushnikov.intellij.plugin.AbstractLombokParsingTestCase; 4 | 5 | public class StandardExceptionTest extends AbstractLombokParsingTestCase { 6 | 7 | public void testStandardexception$StandardExceptions() { 8 | doTest(true); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/test/java/de/plushnikov/intellij/plugin/processor/UtilityClassTest.java: -------------------------------------------------------------------------------- 1 | package de.plushnikov.intellij.plugin.processor; 2 | 3 | import de.plushnikov.intellij.plugin.AbstractLombokParsingTestCase; 4 | 5 | public class UtilityClassTest extends AbstractLombokParsingTestCase { 6 | 7 | public void testUtilityclass$UtilityClassPlain() { 8 | doTest(true); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /testData/action/delombok/builder/beforeBuilderSimple.java: -------------------------------------------------------------------------------- 1 | @lombok.Builder 2 | public class BuilderSimple { 3 | private int myInt; 4 | private String myString; 5 | 6 | public static void main(String[] args) { 7 | BuilderSimple builderSimple = BuilderSimple.builder().myInt(123).myString("string").build(); 8 | System.out.println(builderSimple); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /testData/action/delombok/builder/beforeBuilderSingularMap.java: -------------------------------------------------------------------------------- 1 | @lombok.Builder 2 | public class BuilderSingularMap { 3 | 4 | @lombok.Singular("myMap") 5 | private java.util.Map myMap; 6 | } 7 | -------------------------------------------------------------------------------- /testData/action/delombok/data/beforeDataSimple.java: -------------------------------------------------------------------------------- 1 | @lombok.Data 2 | public class DataSimple { 3 | final int finalX; 4 | int x; 5 | float f; 6 | double d; 7 | boolean bool; 8 | boolean[] y; 9 | Object[] z; 10 | String a; 11 | } 12 | -------------------------------------------------------------------------------- /testData/action/delombok/data/beforeDataWithAnnotations.java: -------------------------------------------------------------------------------- 1 | import lombok.Data; 2 | import lombok.NonNull; 3 | 4 | @Data 5 | public class DataWithAnnotations { 6 | 7 | @NonNull 8 | @Deprecated 9 | @SuppressWarnings("any") 10 | private Integer someParentInteger; 11 | } 12 | -------------------------------------------------------------------------------- /testData/action/delombok/data/beforeDataWithEAHCExclude.java: -------------------------------------------------------------------------------- 1 | import lombok.Data; 2 | @lombok.Data 3 | final class Class1 { 4 | 5 | 6 | private final String f1; 7 | 8 | @lombok.EqualsAndHashCode.Exclude 9 | private final String f2; 10 | } -------------------------------------------------------------------------------- /testData/action/delombok/fieldnameconstants/afterFieldNameConstantsEnumClass.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | private float b; 3 | private double c; 4 | private String d; 5 | private String e; 6 | private static String f; 7 | private static String $g; 8 | 9 | public enum Fields {b, c, d, e} 10 | } 11 | -------------------------------------------------------------------------------- /testData/action/delombok/fieldnameconstants/afterFieldNameConstantsEnumHandrolled.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | private float b; 3 | private double c; 4 | private String d; 5 | private String e; 6 | private static String f; 7 | private static String $g; 8 | 9 | public enum Fields { 10 | b, c, e, d 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/action/delombok/fieldnameconstants/beforeFieldNameConstantsClass.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.FieldNameConstants 2 | class Test { 3 | private float b; 4 | private double c; 5 | private String d; 6 | private String e; 7 | private static String f; 8 | private static String $g; 9 | } 10 | -------------------------------------------------------------------------------- /testData/action/delombok/fieldnameconstants/beforeFieldNameConstantsClassHandrolled.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.FieldNameConstants 2 | class Test { 3 | private float b; 4 | private double c; 5 | private String d; 6 | private String e; 7 | private static String f; 8 | private static String $g; 9 | 10 | public static final class Fields { 11 | public static final String d = "d"; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /testData/action/delombok/fieldnameconstants/beforeFieldNameConstantsEnumClass.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.FieldNameConstants(asEnum = true) 2 | class Test { 3 | private float b; 4 | private double c; 5 | private String d; 6 | private String e; 7 | private static String f; 8 | private static String $g; 9 | } 10 | -------------------------------------------------------------------------------- /testData/action/delombok/fieldnameconstants/beforeFieldNameConstantsEnumHandrolled.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.FieldNameConstants(asEnum = true) 2 | class Test { 3 | private float b; 4 | private double c; 5 | private String d; 6 | private String e; 7 | private static String f; 8 | private static String $g; 9 | 10 | public enum Fields { 11 | d 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /testData/action/delombok/getter/beforeGetterClass.java: -------------------------------------------------------------------------------- 1 | @lombok.Getter 2 | class Test { 3 | private float b; 4 | private double c; 5 | private String d; 6 | private String e; 7 | private static String f; 8 | } 9 | -------------------------------------------------------------------------------- /testData/action/delombok/getter/beforeGetterFields.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | @lombok.Getter 3 | private float b; 4 | @lombok.Getter(lombok.AccessLevel.PROTECTED) 5 | private double c; 6 | @lombok.Getter(lombok.AccessLevel.PRIVATE) 7 | private String d; 8 | @lombok.Getter(lombok.AccessLevel.NONE) 9 | private String e; 10 | @lombok.Getter 11 | private static String f; 12 | } 13 | -------------------------------------------------------------------------------- /testData/action/delombok/log/afterCommonsLog.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Test.class); 4 | 5 | public void logHallo() { 6 | log.info("Hello!"); 7 | } 8 | 9 | public static void main(String[] args) { 10 | Test test = new Test(); 11 | test.logHallo(); 12 | } 13 | 14 | } -------------------------------------------------------------------------------- /testData/action/delombok/log/afterJBossLog.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(Test.class); 4 | 5 | public void logHallo() { 6 | log.info("Hello!"); 7 | } 8 | 9 | public static void main(String[] args) { 10 | Test test = new Test(); 11 | test.logHallo(); 12 | } 13 | 14 | } -------------------------------------------------------------------------------- /testData/action/delombok/log/afterLog.java: -------------------------------------------------------------------------------- 1 | import java.util.logging.Logger; 2 | 3 | class Test { 4 | 5 | private static final Logger log = Logger.getLogger(Test.class.getName()); 6 | 7 | public void logHallo() { 8 | log.info("Hello!"); 9 | } 10 | 11 | public static void main(String[] args) { 12 | Test test = new Test(); 13 | test.logHallo(); 14 | } 15 | 16 | } -------------------------------------------------------------------------------- /testData/action/delombok/log/afterLog4j.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(Test.class); 4 | 5 | public void logHallo() { 6 | log.info("Hello!"); 7 | } 8 | 9 | public static void main(String[] args) { 10 | Test test = new Test(); 11 | test.logHallo(); 12 | } 13 | 14 | } -------------------------------------------------------------------------------- /testData/action/delombok/log/afterLog4j2.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | private static final org.apache.logging.log4j.Logger log = org.apache.logging.log4j.LogManager.getLogger(Test.class); 4 | 5 | public void logHallo() { 6 | log.info("Hello!"); 7 | } 8 | 9 | public static void main(String[] args) { 10 | Test test = new Test(); 11 | test.logHallo(); 12 | } 13 | 14 | } -------------------------------------------------------------------------------- /testData/action/delombok/log/afterSlf4j.java: -------------------------------------------------------------------------------- 1 | import org.slf4j.Logger; 2 | 3 | class Test { 4 | 5 | private static final Logger log = org.slf4j.LoggerFactory.getLogger(Test.class); 6 | 7 | public void logHallo() { 8 | log.info("Hello!"); 9 | } 10 | 11 | public static void main(String[] args) { 12 | Test test = new Test(); 13 | test.logHallo(); 14 | } 15 | 16 | } -------------------------------------------------------------------------------- /testData/action/delombok/log/afterXSlf4j.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | private static final org.slf4j.ext.XLogger log = org.slf4j.ext.XLoggerFactory.getXLogger(Test.class); 4 | 5 | public void logHallo() { 6 | log.info("Hello!"); 7 | } 8 | 9 | public static void main(String[] args) { 10 | Test test = new Test(); 11 | test.logHallo(); 12 | } 13 | 14 | } -------------------------------------------------------------------------------- /testData/action/delombok/log/beforeCommonsLog.java: -------------------------------------------------------------------------------- 1 | @lombok.extern.apachecommons.CommonsLog 2 | class Test { 3 | 4 | public void logHallo() { 5 | log.info("Hello!"); 6 | } 7 | 8 | public static void main(String[] args) { 9 | Test test = new Test(); 10 | test.logHallo(); 11 | } 12 | 13 | } -------------------------------------------------------------------------------- /testData/action/delombok/log/beforeFlogger.java: -------------------------------------------------------------------------------- 1 | @lombok.extern.flogger.Flogger 2 | class Test { 3 | 4 | public void logHallo() { 5 | log.atInfo().log("Hello!"); 6 | } 7 | 8 | public static void main(String[] args) { 9 | Test test = new Test(); 10 | test.logHallo(); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /testData/action/delombok/log/beforeJBossLog.java: -------------------------------------------------------------------------------- 1 | @lombok.extern.jbosslog.JBossLog 2 | class Test { 3 | 4 | public void logHallo() { 5 | log.info("Hello!"); 6 | } 7 | 8 | public static void main(String[] args) { 9 | Test test = new Test(); 10 | test.logHallo(); 11 | } 12 | 13 | } -------------------------------------------------------------------------------- /testData/action/delombok/log/beforeLog.java: -------------------------------------------------------------------------------- 1 | @lombok.extern.java.Log 2 | class Test { 3 | 4 | public void logHallo() { 5 | log.info("Hello!"); 6 | } 7 | 8 | public static void main(String[] args) { 9 | Test test = new Test(); 10 | test.logHallo(); 11 | } 12 | 13 | } -------------------------------------------------------------------------------- /testData/action/delombok/log/beforeLog4j.java: -------------------------------------------------------------------------------- 1 | @lombok.extern.log4j.Log4j 2 | class Test { 3 | 4 | public void logHallo() { 5 | log.info("Hello!"); 6 | } 7 | 8 | public static void main(String[] args) { 9 | Test test = new Test(); 10 | test.logHallo(); 11 | } 12 | 13 | } -------------------------------------------------------------------------------- /testData/action/delombok/log/beforeLog4j2.java: -------------------------------------------------------------------------------- 1 | @lombok.extern.log4j.Log4j2 2 | class Test { 3 | 4 | public void logHallo() { 5 | log.info("Hello!"); 6 | } 7 | 8 | public static void main(String[] args) { 9 | Test test = new Test(); 10 | test.logHallo(); 11 | } 12 | 13 | } -------------------------------------------------------------------------------- /testData/action/delombok/log/beforeSlf4j.java: -------------------------------------------------------------------------------- 1 | @lombok.extern.slf4j.Slf4j 2 | class Test { 3 | 4 | public void logHallo() { 5 | log.info("Hello!"); 6 | } 7 | 8 | public static void main(String[] args) { 9 | Test test = new Test(); 10 | test.logHallo(); 11 | } 12 | 13 | } -------------------------------------------------------------------------------- /testData/action/delombok/log/beforeXSlf4j.java: -------------------------------------------------------------------------------- 1 | @lombok.extern.slf4j.XSlf4j 2 | class Test { 3 | 4 | public void logHallo() { 5 | log.info("Hello!"); 6 | } 7 | 8 | public static void main(String[] args) { 9 | Test test = new Test(); 10 | test.logHallo(); 11 | } 12 | 13 | } -------------------------------------------------------------------------------- /testData/action/delombok/setter/beforeSetterClass.java: -------------------------------------------------------------------------------- 1 | @lombok.Setter 2 | class Test { 3 | private float b; 4 | private double c; 5 | private String d; 6 | private String e; 7 | private static String f; 8 | } 9 | -------------------------------------------------------------------------------- /testData/action/delombok/setter/beforeSetterFields.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | @lombok.Setter 3 | private float b; 4 | @lombok.Setter(lombok.AccessLevel.PROTECTED) 5 | private double c; 6 | @lombok.Setter(lombok.AccessLevel.PRIVATE) 7 | private String d; 8 | @lombok.Setter(lombok.AccessLevel.NONE) 9 | private String e; 10 | @lombok.Setter 11 | private static String f; 12 | } 13 | -------------------------------------------------------------------------------- /testData/action/delombok/utilityclass/beforeUtilityClass.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.UtilityClass 2 | class UtilityClass { 3 | private long someField = System.currentTimeMillis(); 4 | 5 | void someMethod() { 6 | System.out.println(); 7 | } 8 | 9 | protected class InnerClass { 10 | private String innerInnerMember; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/action/delombok/value/beforeValueNonFinalOnClass.java: -------------------------------------------------------------------------------- 1 | import lombok.Value; 2 | 3 | @Value 4 | @lombok.experimental.NonFinal 5 | class Value2 { 6 | 7 | public int x; 8 | String name; 9 | } 10 | -------------------------------------------------------------------------------- /testData/action/delombok/value/beforeValueNonFinalOnField.java: -------------------------------------------------------------------------------- 1 | import lombok.Value; 2 | 3 | @Value 4 | class Value3 { 5 | 6 | @lombok.experimental.NonFinal int x; 7 | int y; 8 | } 9 | -------------------------------------------------------------------------------- /testData/action/delombok/value/beforeValuePlain.java: -------------------------------------------------------------------------------- 1 | import lombok.Value; 2 | 3 | @lombok.Value 4 | class Value1 { 5 | 6 | final int x; 7 | String name; 8 | } 9 | -------------------------------------------------------------------------------- /testData/action/delombok/value/beforeValueWithEAHCExclude.java: -------------------------------------------------------------------------------- 1 | import lombok.Value; 2 | @lombok.Value 3 | class Class1 { 4 | 5 | 6 | String f1; 7 | 8 | @lombok.EqualsAndHashCode.Exclude 9 | String f2; 10 | } -------------------------------------------------------------------------------- /testData/action/generateconstructor/afterGenerateConstructorAll.java: -------------------------------------------------------------------------------- 1 | @lombok.NoArgsConstructor 2 | @lombok.AllArgsConstructor 3 | public class Issue320 { 4 | private String abcd; 5 | private int index; 6 | 7 | public Issue320(String abcd, int index) { 8 | this.abcd = abcd; 9 | this.index = index; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /testData/action/generateconstructor/afterGenerateConstructorEmpty.java: -------------------------------------------------------------------------------- 1 | @lombok.NoArgsConstructor 2 | @lombok.AllArgsConstructor 3 | public class Issue320 { 4 | private String abcd; 5 | private int index; 6 | 7 | public Issue320() { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /testData/action/generateconstructor/beforeGenerateConstructorAll.java: -------------------------------------------------------------------------------- 1 | @lombok.NoArgsConstructor 2 | @lombok.AllArgsConstructor 3 | public class Issue320 { 4 | private String abcd; 5 | private int index; 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /testData/action/generateconstructor/beforeGenerateConstructorEmpty.java: -------------------------------------------------------------------------------- 1 | @lombok.NoArgsConstructor 2 | @lombok.AllArgsConstructor 3 | public class Issue320 { 4 | private String abcd; 5 | private int index; 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /testData/action/intellij/afterConstructors.java: -------------------------------------------------------------------------------- 1 | import lombok.*; 2 | 3 | @AllArgsConstructor 4 | class NewEntity extends MyBaseClass1 { 5 | private Long id; 6 | public NewEntity() { 7 | super(); 8 | } 9 | } 10 | 11 | abstract class MyBaseClass1 { 12 | public MyBaseClass1() {} 13 | } 14 | -------------------------------------------------------------------------------- /testData/action/intellij/afterLogClassRenamed.java: -------------------------------------------------------------------------------- 1 | public @lombok.extern.log4j.Log4j2 class CakeCooked { 2 | public void doStuff() { 3 | log.debug("Toasters."); 4 | } 5 | } -------------------------------------------------------------------------------- /testData/action/intellij/beforeConstructors.java: -------------------------------------------------------------------------------- 1 | import lombok.*; 2 | 3 | @AllArgsConstructor 4 | class NewEntity extends MyBaseClass { 5 | private Long id; 6 | public NewEntity() { 7 | super(); 8 | } 9 | } 10 | 11 | abstract class MyBaseClass { 12 | public MyBaseClass() {} 13 | } 14 | -------------------------------------------------------------------------------- /testData/action/intellij/beforeLogClassRenamed.java: -------------------------------------------------------------------------------- 1 | public @lombok.extern.log4j.Log4j2 class Cake { 2 | public void doStuff() { 3 | log.debug("Toasters."); 4 | } 5 | } -------------------------------------------------------------------------------- /testData/action/lombok/getter/afterGetterDifferentVisibility.java: -------------------------------------------------------------------------------- 1 | import lombok.AccessLevel; 2 | import lombok.Getter; 3 | 4 | class Test { 5 | @Getter 6 | private float b; 7 | @Getter(AccessLevel.PROTECTED) 8 | private double c; 9 | @Getter(AccessLevel.PRIVATE) 10 | private String d; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /testData/action/lombok/getter/afterGetterSimple.java: -------------------------------------------------------------------------------- 1 | import lombok.Getter; 2 | 3 | @Getter 4 | class Test { 5 | private float b; 6 | private double c; 7 | private String d; 8 | 9 | } 10 | -------------------------------------------------------------------------------- /testData/action/lombok/getter/afterGetterStatic.java: -------------------------------------------------------------------------------- 1 | import lombok.Getter; 2 | 3 | @Getter 4 | class Test { 5 | @Getter 6 | private static float b; 7 | @Getter 8 | private static double c; 9 | private String d; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /testData/action/lombok/getter/afterGetterWithAnnotationChange.java: -------------------------------------------------------------------------------- 1 | import lombok.AccessLevel; 2 | import lombok.Getter; 3 | 4 | class Test { 5 | @Getter 6 | private float b; 7 | @lombok.Getter(AccessLevel.PROTECTED) 8 | private double c; 9 | @lombok.Getter() 10 | private String d; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /testData/action/lombok/getter/afterGetterWithAnnotationPresentOnClass.java: -------------------------------------------------------------------------------- 1 | @lombok.Getter 2 | class Test { 3 | private float b; 4 | private double c; 5 | private String d; 6 | 7 | } 8 | -------------------------------------------------------------------------------- /testData/action/lombok/getter/beforeGetterDifferentVisibility.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | private float b; 3 | private double c; 4 | private String d; 5 | 6 | public float getB() { 7 | return b; 8 | } 9 | 10 | protected double getC() { 11 | return c; 12 | } 13 | 14 | private String getD() { 15 | return d; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /testData/action/lombok/getter/beforeGetterSimple.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | private float b; 3 | private double c; 4 | private String d; 5 | 6 | public float getB() { 7 | return b; 8 | } 9 | 10 | public double getC() { 11 | return c; 12 | } 13 | 14 | public String getD() { 15 | return d; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /testData/action/lombok/getter/beforeGetterStatic.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | private static float b; 3 | private static double c; 4 | private String d; 5 | 6 | public static float getB() { 7 | return b; 8 | } 9 | 10 | public static double getC() { 11 | return c; 12 | } 13 | 14 | public String getD() { 15 | return d; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /testData/action/lombok/getter/beforeGetterWithAnnotationPresentOnClass.java: -------------------------------------------------------------------------------- 1 | @lombok.Getter 2 | class Test { 3 | private float b; 4 | private double c; 5 | private String d; 6 | 7 | public float getB() { 8 | return b; 9 | } 10 | 11 | public double getC() { 12 | return c; 13 | } 14 | 15 | public String getD() { 16 | return d; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /testData/action/lombok/log/afterLogNonFinal.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.java.Log; 2 | 3 | @Log 4 | class Test { 5 | 6 | public void logHallo() { 7 | log.info("Hello!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | Test test = new Test(); 12 | test.logHallo(); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /testData/action/lombok/log/afterLogNonStatic.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.java.Log; 2 | 3 | @Log 4 | class Test { 5 | 6 | public void logHallo() { 7 | log.info("Hello!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | Test test = new Test(); 12 | test.logHallo(); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /testData/action/lombok/log/afterLogPublic.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.java.Log; 2 | 3 | @Log 4 | class Test { 5 | 6 | public void logHallo() { 7 | log.info("Hello!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | Test test = new Test(); 12 | test.logHallo(); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /testData/action/lombok/log/afterLogRename.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.java.Log; 2 | 3 | @Log 4 | class Test { 5 | 6 | public void logHallo() { 7 | log.info("Hello!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | Test test = new Test(); 12 | test.logHallo(); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /testData/action/lombok/log/afterLogSimple.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.java.Log; 2 | 3 | @Log 4 | class Test { 5 | 6 | public void logHallo() { 7 | log.info("Hello!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | Test test = new Test(); 12 | test.logHallo(); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /testData/action/lombok/log/beforeLogNonFinal.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | private static java.util.logging.Logger log = java.util.logging.Logger.getLogger(Test.class.getName()); 4 | 5 | public void logHallo() { 6 | log.info("Hello!"); 7 | } 8 | 9 | public static void main(String[] args) { 10 | Test test = new Test(); 11 | test.logHallo(); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /testData/action/lombok/log/beforeLogNonStatic.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | private final java.util.logging.Logger log = java.util.logging.Logger.getLogger(Test.class.getName()); 4 | 5 | public void logHallo() { 6 | log.info("Hello!"); 7 | } 8 | 9 | public static void main(String[] args) { 10 | Test test = new Test(); 11 | test.logHallo(); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /testData/action/lombok/log/beforeLogPublic.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | public static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(Test.class.getName()); 4 | 5 | public void logHallo() { 6 | log.info("Hello!"); 7 | } 8 | 9 | public static void main(String[] args) { 10 | Test test = new Test(); 11 | test.logHallo(); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /testData/action/lombok/log/beforeLogRename.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | private static final java.util.logging.Logger log324 = java.util.logging.Logger.getLogger(Test.class.getName()); 4 | 5 | public void logHallo() { 6 | log324.info("Hello!"); 7 | } 8 | 9 | public static void main(String[] args) { 10 | Test test = new Test(); 11 | test.logHallo(); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /testData/action/lombok/log/beforeLogSimple.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(Test.class.getName()); 4 | 5 | public void logHallo() { 6 | log.info("Hello!"); 7 | } 8 | 9 | public static void main(String[] args) { 10 | Test test = new Test(); 11 | test.logHallo(); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /testData/action/lombok/setter/afterSetterDifferentVisibility.java: -------------------------------------------------------------------------------- 1 | import lombok.AccessLevel; 2 | import lombok.Setter; 3 | 4 | class Test { 5 | @Setter 6 | private float b; 7 | @Setter(AccessLevel.PROTECTED) 8 | private double c; 9 | @Setter(AccessLevel.PRIVATE) 10 | private String d; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /testData/action/lombok/setter/afterSetterSimple.java: -------------------------------------------------------------------------------- 1 | import lombok.Setter; 2 | 3 | @Setter 4 | class Test { 5 | private float b; 6 | private double c; 7 | private String d; 8 | 9 | } 10 | -------------------------------------------------------------------------------- /testData/action/lombok/setter/afterSetterStatic.java: -------------------------------------------------------------------------------- 1 | import lombok.Setter; 2 | 3 | @Setter 4 | class Test { 5 | @Setter 6 | private static float b; 7 | @Setter 8 | private static double c; 9 | private String d; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /testData/action/lombok/setter/afterSetterWithAnnotationChange.java: -------------------------------------------------------------------------------- 1 | import lombok.AccessLevel; 2 | import lombok.Setter; 3 | 4 | class Test { 5 | @Setter 6 | private float b; 7 | @lombok.Setter(AccessLevel.PROTECTED) 8 | private double c; 9 | @lombok.Setter() 10 | private String d; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /testData/action/lombok/setter/afterSetterWithAnnotationPresentOnClass.java: -------------------------------------------------------------------------------- 1 | @lombok.Setter 2 | class Test { 3 | private float b; 4 | private double c; 5 | private String d; 6 | 7 | } 8 | -------------------------------------------------------------------------------- /testData/action/lombok/setter/beforeSetterDifferentVisibility.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | private float b; 3 | private double c; 4 | private String d; 5 | 6 | public void setB(float b) { 7 | this.b = b; 8 | } 9 | 10 | protected void setC(double c) { 11 | this.c = c; 12 | } 13 | 14 | private void setD(String d) { 15 | this.d = d; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /testData/action/lombok/setter/beforeSetterSimple.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | private float b; 3 | private double c; 4 | private String d; 5 | 6 | public void setB(float b) { 7 | this.b = b; 8 | } 9 | 10 | public void setC(double c) { 11 | this.c = c; 12 | } 13 | 14 | public void setD(String d) { 15 | this.d = d; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /testData/action/lombok/setter/beforeSetterStatic.java: -------------------------------------------------------------------------------- 1 | class Test { 2 | private static float b; 3 | private static double c; 4 | private String d; 5 | 6 | public static void setB(float b) { 7 | this.b = b; 8 | } 9 | 10 | public static void setC(double c) { 11 | this.c = c; 12 | } 13 | 14 | public void setD(String d) { 15 | this.d = d; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /testData/action/lombok/setter/beforeSetterWithAnnotationPresentOnClass.java: -------------------------------------------------------------------------------- 1 | @lombok.Setter 2 | class Test { 3 | private float b; 4 | private double c; 5 | private String d; 6 | 7 | public void setB(float b) { 8 | this.b = b; 9 | } 10 | 11 | public void setC(double c) { 12 | this.c = c; 13 | } 14 | 15 | public void setD(String d) { 16 | this.d = d; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /testData/after/FieldDefaults.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Wed Oct 02 19:12:43 GMT 2019 2 | 3 | class FieldDefaults1 { 4 | final int x; 5 | int y; 6 | 7 | FieldDefaults1(int x) { 8 | this.x = x; 9 | } 10 | } 11 | 12 | class FieldDefaults2 { 13 | int x; 14 | private int y; 15 | } 16 | -------------------------------------------------------------------------------- /testData/after/FieldDefaultsNoop.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Wed Oct 02 19:12:43 GMT 2019 2 | 3 | class FieldDefaultsNoop { 4 | } 5 | -------------------------------------------------------------------------------- /testData/after/MixGetterVal.java: -------------------------------------------------------------------------------- 1 | class MixGetterVal { 2 | private int x; 3 | public void m(int z) { 4 | } 5 | 6 | public void test() { 7 | final int y = x; 8 | m(y); 9 | } 10 | 11 | @java.lang.SuppressWarnings("all") 12 | public int getX() { 13 | return this.x; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /testData/after/SimpleTypeResolution.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Wed Oct 02 19:12:43 GMT 2019 2 | 3 | class SimpleTypeResolutionFail { 4 | @Getter 5 | private int x; 6 | } 7 | 8 | class SimpleTypeResolutionSuccess { 9 | private int x; 10 | 11 | @java.lang.SuppressWarnings("all") 12 | public int getX() { 13 | return this.x; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /testData/after/SynchronizedNameNoSuchField.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Wed Oct 02 19:12:43 GMT 2019 2 | 3 | class SynchronizedNameNoSuchField { 4 | private Object read = new Object(); 5 | private static Object READ = new Object(); 6 | 7 | void test2() { 8 | System.out.println("two"); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /testData/after/SynchronizedNameStaticToInstanceRef.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Wed Oct 02 19:12:43 GMT 2019 2 | 3 | class SynchronizedNameStaticToInstanceRef { 4 | private Object read = new Object(); 5 | private static Object READ = new Object(); 6 | 7 | static void test3() { 8 | synchronized (SynchronizedNameStaticToInstanceRef.read) { 9 | System.out.println("three"); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/after/accessors/AccessorsMakeFinal.java: -------------------------------------------------------------------------------- 1 | class AccessorsMakeFinal1 { 2 | private String test; 3 | /** 4 | * @return {@code this}. 5 | */ 6 | @java.lang.SuppressWarnings("all") 7 | public final AccessorsMakeFinal1 test(final String test) { 8 | this.test = test; 9 | return this; 10 | } 11 | } -------------------------------------------------------------------------------- /testData/after/delegate/DelegateWithVarargs2.java: -------------------------------------------------------------------------------- 1 | class DelegateWithVarargs2 { 2 | private DelegateWithVarargs2.B bar; 3 | 4 | public class B { 5 | public void varargs(Object[]... keys) { 6 | } 7 | } 8 | 9 | @java.lang.SuppressWarnings("all") 10 | public void varargs(final java.lang.Object[]... keys) { 11 | this.bar.varargs(keys); 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /testData/after/fieldnameconstants/FieldNameConstantsEnum.java: -------------------------------------------------------------------------------- 1 | public class FieldNameConstantsEnum { 2 | String iAmADvdPlayer; 3 | int $dontSkipMe; 4 | static double alsoDontSkipMe; 5 | int butSkipMe; 6 | @java.lang.SuppressWarnings("all") 7 | public enum TypeTest { 8 | iAmADvdPlayer, $dontSkipMe, alsoDontSkipMe; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /testData/after/fieldnameconstants/FieldNameConstantsOldBasic.java: -------------------------------------------------------------------------------- 1 | public class FieldNameConstantsBasic { 2 | protected static final java.lang.String FIELD_I_AM_A_DVD_PLAYER = "iAmADvdPlayer"; 3 | public static final java.lang.String FIELD_BUT_PRINT_ME_PLEASE = "butPrintMePlease"; 4 | 5 | String iAmADvdPlayer; 6 | int $skipMe; 7 | static double skipMeToo; 8 | String butPrintMePlease; 9 | } 10 | -------------------------------------------------------------------------------- /testData/after/getter/ClassNamedAfterGetter.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Sat Jun 11 11:12:44 CEST 2016 2 | 3 | class GetFoo { 4 | private int foo; 5 | 6 | @java.lang.SuppressWarnings("all") 7 | public int getFoo() { 8 | return this.foo; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /testData/after/getter/GetterNone.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Sat Jun 11 11:12:44 CEST 2016 2 | 3 | class GetterNone { 4 | int i; 5 | int foo; 6 | 7 | @java.lang.SuppressWarnings("all") 8 | public int getI() { 9 | return this.i; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /testData/after/getter/GetterOnMethodErrors.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Sat Jun 11 11:12:44 CEST 2016 2 | 3 | class PlaceFillerToMakeSurePositionIsRelevant { 4 | } 5 | 6 | class GetterOnMethodErrors { 7 | private int test; 8 | 9 | @java.lang.SuppressWarnings("all") 10 | public int getTest() { 11 | return this.test; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /testData/after/getter/GetterOnStatic.java: -------------------------------------------------------------------------------- 1 | class Getter { 2 | static boolean foo; 3 | static int bar; 4 | @java.lang.SuppressWarnings("all") 5 | public static boolean isFoo() { 6 | return Getter.foo; 7 | } 8 | @java.lang.SuppressWarnings("all") 9 | public static int getBar() { 10 | return Getter.bar; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/after/getter/GetterPlain.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Sat Jun 11 11:12:44 CEST 2016 2 | 3 | class GetterPlain { 4 | int i; 5 | int foo; 6 | 7 | @java.lang.SuppressWarnings("all") 8 | public int getI() { 9 | return this.i; 10 | } 11 | 12 | @java.lang.SuppressWarnings("all") 13 | public int getFoo() { 14 | return this.foo; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /testData/after/logger/LoggerFlogger.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Sat Jun 11 11:12:44 CEST 2016 2 | 3 | class LoggerFlogger { 4 | @java.lang.SuppressWarnings("all") 5 | private static final com.google.common.flogger.FluentLogger log = com.google.common.flogger.FluentLogger.forEnclosingClass(); 6 | } 7 | -------------------------------------------------------------------------------- /testData/after/logger/LoggerSlf4jAlreadyExists.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Sat Jun 11 11:12:44 CEST 2016 2 | 3 | class LoggerSlf4jAlreadyExists { 4 | int log; 5 | } 6 | -------------------------------------------------------------------------------- /testData/after/logger/LoggerSlf4jOnNonType.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Sat Jun 11 11:12:44 CEST 2016 2 | 3 | class LoggerSlf4jOnNonType { 4 | void foo() { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /testData/after/setter/SetterPlain.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Sat Jun 11 11:12:44 CEST 2016 2 | 3 | class SetterPlain { 4 | int i; 5 | int foo; 6 | 7 | @java.lang.SuppressWarnings("all") 8 | public void setI(final int i) { 9 | this.i = i; 10 | } 11 | 12 | @java.lang.SuppressWarnings("all") 13 | public void setFoo(final int foo) { 14 | this.foo = foo; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /testData/after/tostring/ToStringExplicitInclude.java: -------------------------------------------------------------------------------- 1 | class ToStringExplicitInclude { 2 | int x; 3 | @Override 4 | @SuppressWarnings("all") 5 | public String toString() { 6 | return "ToStringExplicitInclude()"; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testData/after/tostring/ToStringExplicitOfAndExclude.java: -------------------------------------------------------------------------------- 1 | class ToStringExplicitOfAndExclude { 2 | int x; 3 | float y; 4 | long z; 5 | String name; 6 | 7 | @java.lang.Override 8 | @java.lang.SuppressWarnings("all") 9 | public java.lang.String toString() { 10 | return "ToStringExplicitOfAndExclude(x=" + this.x + ", z=" + this.z + ")"; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/after/tostring/ToStringWithNamedExistingMethods.java: -------------------------------------------------------------------------------- 1 | public class ToStringWithNamedExistingMethods { 2 | private int someInt; 3 | 4 | public String toString(String string) { 5 | return string; 6 | } 7 | 8 | public String toString() { 9 | return "ToStringWithNamedExistingMethods(someInt=" + this.someInt + ")"; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /testData/after/val/TrickyTypeResolution2.java: -------------------------------------------------------------------------------- 1 | import lombok.*; 2 | class DoNothingDueToTopLevel { 3 | void test() { 4 | val x = null; 5 | } 6 | } 7 | class val { 8 | } 9 | -------------------------------------------------------------------------------- /testData/after/val/ValErrors.java: -------------------------------------------------------------------------------- 1 | public class ValErrors { 2 | public void unresolvableExpression() { 3 | final java.lang.Object c = d; 4 | } 5 | public void arrayInitializer() { 6 | val e = {"foo", "bar"}; 7 | } 8 | } -------------------------------------------------------------------------------- /testData/after/val/ValInBasicFor.java: -------------------------------------------------------------------------------- 1 | import lombok.val; 2 | public class ValInBasicFor { 3 | public void basicFor() { 4 | java.util.List list = java.util.Arrays.asList("Hello, World!"); 5 | for (val shouldBe = 1, marked = "", error = 1.0; ; ) { 6 | System.out.println(""); 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /testData/after/val/ValInFor.java: -------------------------------------------------------------------------------- 1 | public class ValInFor { 2 | public void enhancedFor() { 3 | java.util.List list = java.util.Arrays.asList("Hello, World!"); 4 | for (final java.lang.String shouldBeString : list) { 5 | System.out.println(shouldBeString.toLowerCase()); 6 | final java.lang.String shouldBeString2 = shouldBeString; 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /testData/after/val/ValInMultiDeclaration.java: -------------------------------------------------------------------------------- 1 | public class ValInMultiDeclaration { 2 | public void test() { 3 | final int x = 10; 4 | final java.lang.String y = ""; 5 | } 6 | } -------------------------------------------------------------------------------- /testData/after/val/ValInTryWithResources.java: -------------------------------------------------------------------------------- 1 | //version 7 2 | import java.io.IOException; 3 | public class ValInTryWithResources { 4 | public void whyTryInsteadOfCleanup() throws IOException { 5 | try (final java.io.InputStream in = getClass().getResourceAsStream("ValInTryWithResources.class");) { 6 | final java.io.InputStream i = in; 7 | final int j = in.read(); 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /testData/after/val/ValWithLabel.java: -------------------------------------------------------------------------------- 1 | public class ValWithLabel { 2 | { 3 | LABEL: for (final java.lang.String x : new String[0]) { 4 | if (x.toLowerCase() == null) { 5 | continue LABEL; 6 | } 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /testData/after/with/WithInnerAnnotation.java: -------------------------------------------------------------------------------- 1 | // unchanged 2 | class WithInnerAnnotation { 3 | @interface Inner { 4 | int bar() default 42; 5 | } 6 | } -------------------------------------------------------------------------------- /testData/after/with/WithMethodAbstract.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Wed Oct 02 19:12:43 GMT 2019 2 | 3 | abstract class WithMethodAbstract { 4 | String foo; 5 | 6 | @java.lang.SuppressWarnings("all") 7 | public abstract WithMethodAbstract withFoo(final String foo); 8 | } 9 | -------------------------------------------------------------------------------- /testData/after/with/WithOnStatic.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Wed Oct 02 19:12:43 GMT 2019 2 | 3 | class WithOnStatic { 4 | static boolean foo; 5 | static int bar; 6 | } 7 | -------------------------------------------------------------------------------- /testData/after/with/WithWithDollar.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Wed Oct 02 19:12:43 GMT 2019 2 | 3 | class WithWithDollar { 4 | int $i; 5 | } 6 | -------------------------------------------------------------------------------- /testData/after/with/WitherLegacyStar.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Wed Oct 02 19:12:43 GMT 2019 2 | 3 | class WitherLegacyStar { 4 | int i; 5 | 6 | WitherLegacyStar(int i) { 7 | this.i = i; 8 | } 9 | 10 | @java.lang.SuppressWarnings("all") 11 | public WitherLegacyStar withI(final int i) { 12 | return this.i == i ? this : new WitherLegacyStar(i); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /testData/after/wither/WitherOnStatic.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Wed Oct 02 19:12:43 GMT 2019 2 | 3 | class WitherOnStatic { 4 | static boolean foo; 5 | static int bar; 6 | } 7 | -------------------------------------------------------------------------------- /testData/after/wither/WitherWithAbstract.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Wed Oct 02 19:12:43 GMT 2019 2 | 3 | abstract class WitherWithAbstract { 4 | String foo; 5 | 6 | @java.lang.SuppressWarnings("all") 7 | public abstract WitherWithAbstract withFoo(final String foo); 8 | } 9 | -------------------------------------------------------------------------------- /testData/after/wither/WitherWithDollar.java: -------------------------------------------------------------------------------- 1 | // Generated by delombok at Wed Oct 02 19:12:43 GMT 2019 2 | 3 | class WitherWithDollar { 4 | int $i; 5 | } 6 | -------------------------------------------------------------------------------- /testData/augment/exception/Error526.java: -------------------------------------------------------------------------------- 1 | package augment.exception; 2 | 3 | import lombok.Value; 4 | import lombok.experimental.Accessors; 5 | 6 | @Accessors 7 | @Value(staticConstructor = "of") 8 | public final class Error526 { 9 | 10 | private final C code; 11 | private final T subject; 12 | private final String reason; 13 | 14 | } 15 | -------------------------------------------------------------------------------- /testData/augment/modifier/FieldDefaultsFinal.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.FieldDefaults; 2 | 3 | @FieldDefaults(makeFinal = true) 4 | class FieldDefaultsModifiers { 5 | int i1 = 0; 6 | } 7 | -------------------------------------------------------------------------------- /testData/augment/modifier/FieldDefaultsFinalFalse.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.FieldDefaults; 2 | 3 | @FieldDefaults(makeFinal = false) 4 | class FieldDefaultsModifiers { 5 | int i1 = 0; 6 | } 7 | -------------------------------------------------------------------------------- /testData/augment/modifier/FieldDefaultsNone.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.FieldDefaults; 2 | import lombok.AccessLevel; 3 | 4 | @FieldDefaults 5 | class FieldDefaultsModifiers { 6 | int i1 = 0; 7 | } 8 | -------------------------------------------------------------------------------- /testData/augment/modifier/FieldDefaultsPrivate.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.FieldDefaults; 2 | import lombok.AccessLevel; 3 | 4 | @FieldDefaults(level = AccessLevel.PRIVATE) 5 | class FieldDefaultsModifiers { 6 | int i1 = 0; 7 | } 8 | -------------------------------------------------------------------------------- /testData/augment/modifier/FieldDefaultsProtected.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.FieldDefaults; 2 | import lombok.AccessLevel; 3 | 4 | @FieldDefaults(level = AccessLevel.PROTECTED) 5 | class FieldDefaultsModifiers { 6 | int i1 = 0; 7 | } 8 | -------------------------------------------------------------------------------- /testData/augment/modifier/FieldDefaultsPublic.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.FieldDefaults; 2 | import lombok.AccessLevel; 3 | 4 | @FieldDefaults(level = AccessLevel.PUBLIC) 5 | class FieldDefaultsModifiers { 6 | int i1 = 0; 7 | } 8 | -------------------------------------------------------------------------------- /testData/augment/modifier/FieldDefaultsPublicWithPackagePrivate.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.FieldDefaults; 2 | import lombok.experimental.PackagePrivate; 3 | import lombok.AccessLevel; 4 | 5 | @FieldDefaults(level = AccessLevel.PUBLIC) 6 | class FieldDefaultsModifiers { 7 | @PackagePrivate int i1 = 0; 8 | } 9 | -------------------------------------------------------------------------------- /testData/augment/modifier/FieldDefaultsStaticFinal.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.FieldDefaults(makeFinal = true) 2 | class FieldDefaults1 { 3 | static int STATIC = 3; 4 | } 5 | -------------------------------------------------------------------------------- /testData/augment/modifier/FieldDefaultsStaticPrivate.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.FieldDefaults(level = lombok.AccessLevel.PRIVATE) 2 | class FieldDefaults2 { 3 | static int STATIC = 3; 4 | } 5 | -------------------------------------------------------------------------------- /testData/augment/modifier/FieldDefaultsWithExplicitModifier.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.FieldDefaults; 2 | import lombok.AccessLevel; 3 | 4 | @FieldDefaults(level = AccessLevel.PUBLIC) 5 | class FieldDefaultsModifiers { 6 | protected int i1 = 0; 7 | } 8 | -------------------------------------------------------------------------------- /testData/augment/modifier/FieldDefaultsWithNonFinal.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.FieldDefaults; 2 | import lombok.experimental.NonFinal; 3 | 4 | @FieldDefaults(makeFinal = true) 5 | class FieldDefaultsModifiers { 6 | int i1 = 0; 7 | @NonFinal int i2 = 1; 8 | } 9 | -------------------------------------------------------------------------------- /testData/augment/modifier/FieldDefaultsWithUtilityClass.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.UtilityClass; 2 | import lombok.experimental.FieldDefaults; 3 | import lombok.AccessLevel; 4 | 5 | @UtilityClass 6 | @FieldDefaults(level = AccessLevel.PRIVATE, makeFinal = true) 7 | public class FieldDefaultsWithUtilityClass { 8 | private boolean myStaticField; 9 | } 10 | -------------------------------------------------------------------------------- /testData/augment/modifier/UtilityClassModifiersField.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.UtilityClass; 2 | 3 | @lombok.experimental.UtilityClass 4 | public class UtilityClassModifiers { 5 | 6 | String field; 7 | } 8 | -------------------------------------------------------------------------------- /testData/augment/modifier/UtilityClassModifiersInnerClass.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.UtilityClass; 2 | 3 | @lombok.experimental.UtilityClass 4 | public class UtilityClassModifiers { 5 | 6 | public class InnerClass{} 7 | } 8 | -------------------------------------------------------------------------------- /testData/augment/modifier/UtilityClassModifiersMethod.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.UtilityClass; 2 | 3 | @lombok.experimental.UtilityClass 4 | public class UtilityClassModifiers { 5 | 6 | public void method(); 7 | } 8 | -------------------------------------------------------------------------------- /testData/augment/modifier/ValModifiers.java: -------------------------------------------------------------------------------- 1 | import lombok.val; 2 | 3 | class ValModifier { 4 | void test() { 5 | val foo = "123"; 6 | } 7 | } -------------------------------------------------------------------------------- /testData/augment/modifier/ValueModifiers.java: -------------------------------------------------------------------------------- 1 | @lombok.Value 2 | public class ValueModifiers { 3 | 4 | String name; 5 | } 6 | -------------------------------------------------------------------------------- /testData/augment/modifier/ValueModifiersStatic.java: -------------------------------------------------------------------------------- 1 | @lombok.Value 2 | public class ValueModifiersStatic { 3 | 4 | static String name; 5 | } 6 | -------------------------------------------------------------------------------- /testData/augment/modifier/VarModifiers.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.var; 2 | 3 | class ValModifier { 4 | void test() { 5 | var foo = "123"; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/augment/modifier/VarModifiersEditing.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.var; 2 | 3 | class Foo { 4 | void test() { 5 | var o = ; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/before/CleanupName.java: -------------------------------------------------------------------------------- 1 | class CleanupName { 2 | void test() { 3 | @lombok.Cleanup("toString") Object o = "Hello World!"; 4 | System.out.println(o); 5 | } 6 | void test2() { 7 | @lombok.Cleanup(value="toString") Object o = "Hello World too!"; 8 | System.out.println(o); 9 | } 10 | } -------------------------------------------------------------------------------- /testData/before/CleanupPlain.java: -------------------------------------------------------------------------------- 1 | import lombok.Cleanup; 2 | import java.io.*; 3 | class CleanupPlain { 4 | void test() throws Exception { 5 | @lombok.Cleanup InputStream in = new FileInputStream("in"); 6 | @Cleanup OutputStream out = new FileOutputStream("out"); 7 | if (in.markSupported()) { 8 | out.flush(); 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /testData/before/FieldDefaults.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.FieldDefaults(makeFinal = true) 2 | class FieldDefaults1 { 3 | int x; 4 | @lombok.experimental.NonFinal int y; 5 | 6 | FieldDefaults1(int x) { 7 | this.x = x; 8 | } 9 | } 10 | 11 | @lombok.experimental.FieldDefaults(level = lombok.AccessLevel.PRIVATE) 12 | class FieldDefaults2 { 13 | @lombok.experimental.PackagePrivate int x; 14 | int y; 15 | } -------------------------------------------------------------------------------- /testData/before/FieldDefaultsNoop.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.FieldDefaults 2 | class FieldDefaultsNoop { 3 | } -------------------------------------------------------------------------------- /testData/before/MixGetterVal.java: -------------------------------------------------------------------------------- 1 | import lombok.Getter; 2 | import lombok.val; 3 | 4 | class MixGetterVal { 5 | @Getter private int x; 6 | 7 | public void m(int z) {} 8 | public void test() { 9 | val y = x; 10 | m(y); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/before/SimpleTypeResolution.java: -------------------------------------------------------------------------------- 1 | class SimpleTypeResolutionFail { 2 | @Getter private int x; 3 | } 4 | 5 | class SimpleTypeResolutionSuccess { 6 | @lombok.Getter private int x; 7 | } 8 | -------------------------------------------------------------------------------- /testData/before/SynchronizedNameNoSuchField.java: -------------------------------------------------------------------------------- 1 | class SynchronizedNameNoSuchField { 2 | private Object read = new Object(); 3 | private static Object READ = new Object(); 4 | 5 | @lombok.Synchronized("write") void test2() { 6 | System.out.println("two"); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testData/before/SynchronizedNameStaticToInstanceRef.java: -------------------------------------------------------------------------------- 1 | class SynchronizedNameStaticToInstanceRef { 2 | private Object read = new Object(); 3 | private static Object READ = new Object(); 4 | 5 | @lombok.Synchronized("read") static void test3() { 6 | System.out.println("three"); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testData/before/accessors/AccessorsMakeFinal.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.Accessors(makeFinal = true) 2 | class AccessorsMakeFinal1 { 3 | @lombok.Setter @lombok.experimental.Accessors(fluent = true) 4 | private String test; 5 | } 6 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderAndAllArgsConstructor.java: -------------------------------------------------------------------------------- 1 | @lombok.Builder 2 | @lombok.AllArgsConstructor(access = lombok.AccessLevel.PRIVATE) 3 | public class BuilderAndAllArgsConstructor { 4 | 5 | private String field1; 6 | private String field2; 7 | 8 | } 9 | 10 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderComplex.java: -------------------------------------------------------------------------------- 1 | import java.util.List; 2 | import lombok.Builder; 3 | 4 | class BuilderComplex { 5 | @Builder(buildMethodName = "execute") 6 | private static void testVoidWithGenerics(T number, int arg2, String arg3, BuilderComplex selfRef) {} 7 | } 8 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderExample.java: -------------------------------------------------------------------------------- 1 | import lombok.Builder; 2 | 3 | @Builder 4 | public class BuilderExample { 5 | private String name; 6 | private int age; 7 | } 8 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderExampleCustomized.java: -------------------------------------------------------------------------------- 1 | @lombok.Builder(builderClassName = "HelloWorldBuilder", buildMethodName = "execute", 2 | builderMethodName = "helloWorld") 3 | public class BuilderExampleCustomized { 4 | private String name; 5 | private int age; 6 | } 7 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderInstanceMethod.java: -------------------------------------------------------------------------------- 1 | import java.util.List; 2 | 3 | class BuilderInstanceMethod { 4 | @lombok.Builder 5 | public String create(int show, final int yes, List also, int $andMe) { 6 | return "" + show + yes + also + $andMe; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderOnRecord.java: -------------------------------------------------------------------------------- 1 | import lombok.Builder; 2 | 3 | @Builder 4 | public record Person(String name) { 5 | } 6 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderSimple.java: -------------------------------------------------------------------------------- 1 | import java.util.List; 2 | 3 | @lombok.Builder 4 | class BuilderSimple { 5 | private final int noshow = 0; 6 | private final int yes; 7 | private List also; 8 | private int $butNotMe; 9 | } 10 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderSimpleProtected.java: -------------------------------------------------------------------------------- 1 | import java.util.List; 2 | 3 | @lombok.Builder(access = lombok.AccessLevel.PROTECTED) 4 | class BuilderSimpleProtected { 5 | private List also; 6 | } 7 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderSingularLists.java: -------------------------------------------------------------------------------- 1 | import java.util.List; 2 | import java.util.Collection; 3 | 4 | import lombok.Singular; 5 | 6 | @lombok.Builder 7 | class BuilderSingularLists { 8 | @Singular private List children; 9 | @Singular private Collection scarves; 10 | @SuppressWarnings("all") @Singular("rawList") private List rawList; 11 | } 12 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderSingularNoAuto.java: -------------------------------------------------------------------------------- 1 | //CONF: lombok.singular.auto = false 2 | import java.util.List; 3 | 4 | import lombok.Singular; 5 | 6 | @lombok.Builder 7 | class BuilderSingularNoAuto { 8 | @Singular private List things; 9 | @Singular("widget") private List widgets; 10 | @Singular private List items; 11 | } 12 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderSingularWithPrefixes.java: -------------------------------------------------------------------------------- 1 | import lombok.Singular; 2 | 3 | @lombok.Builder 4 | @lombok.experimental.Accessors(prefix = "_") 5 | class BuilderSingularWithPrefixes { 6 | @Singular private java.util.List _elems; 7 | } 8 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderValueData.java: -------------------------------------------------------------------------------- 1 | import java.util.List; 2 | 3 | @lombok.Builder @lombok.Value 4 | //added "final" do lombok class 5 | final class BuilderAndValue { 6 | private final int zero = 0; 7 | } 8 | 9 | @lombok.Builder @lombok.Data 10 | class BuilderAndData { 11 | private final int zero = 0; 12 | } 13 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderWithAccessors.java: -------------------------------------------------------------------------------- 1 | @lombok.Builder @lombok.experimental.Accessors(prefix={"p", "_"}) 2 | class BuilderWithAccessors { 3 | private final int plower; 4 | private final int pUpper; 5 | private int _foo; 6 | private int __bar; 7 | } 8 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderWithAccessorsWithSetterPrefix.java: -------------------------------------------------------------------------------- 1 | @lombok.Builder(setterPrefix = "set") @lombok.experimental.Accessors(prefix={"p", "_"}) 2 | class BuilderWithAccessorsWithSetterPrefix { 3 | private final int plower; 4 | private final int pUpper; 5 | private int _foo; 6 | private int __bar; 7 | } 8 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderWithBuilderClassName.java: -------------------------------------------------------------------------------- 1 | import lombok.Builder; 2 | import lombok.Value; 3 | 4 | @Value 5 | @Builder(builderClassName = "Builder") 6 | public class BuilderWithBuilderClassName { 7 | 8 | String name; 9 | int age; 10 | } 11 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderWithDeprecatedField.java: -------------------------------------------------------------------------------- 1 | @lombok.Builder 2 | public class BuilderWithDeprecatedField { 3 | private String bar; 4 | 5 | @Deprecated 6 | private String foo; 7 | 8 | @Deprecated 9 | @lombok.Singular 10 | private java.util.List xyzs; 11 | } 12 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderWithDeprecatedParam.java: -------------------------------------------------------------------------------- 1 | public class BuilderWithDeprecatedParam { 2 | 3 | @lombok.Builder 4 | private static java.util.Collection creator(String bar, @Deprecated String foo) { 5 | return java.util.Arrays.asList(bar, foo); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderWithFieldAccessors.java: -------------------------------------------------------------------------------- 1 | @lombok.Builder 2 | @lombok.experimental.Accessors(prefix = "m") 3 | public class BuilderWithFieldAccessors { 4 | 5 | @lombok.experimental.Accessors(prefix = "p") 6 | private final int pUpper; 7 | 8 | @lombok.experimental.Accessors(prefix = "_") 9 | private int _foo; 10 | 11 | private String mBar; 12 | } 13 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderWithNoBuilderMethod.java: -------------------------------------------------------------------------------- 1 | import lombok.Builder; 2 | @Builder(toBuilder = true, builderMethodName = "") 3 | class BuilderWithNoBuilderMethod { 4 | private String a = ""; 5 | } 6 | -------------------------------------------------------------------------------- /testData/before/builder/BuilderWithToBuilderOnClass.java: -------------------------------------------------------------------------------- 1 | @lombok.Builder(toBuilder = true) 2 | class BuilderWithToBuilderOnClass { 3 | private String one, two; 4 | 5 | @lombok.Builder.ObtainVia(method = "rrr", isStatic = true) 6 | private T foo; 7 | 8 | private int bar; 9 | 10 | public static K rrr(BuilderWithToBuilderOnClass x) { 11 | return x.foo; 12 | } 13 | } -------------------------------------------------------------------------------- /testData/before/builder/BuilderWithToBuilderOnConstructor.java: -------------------------------------------------------------------------------- 1 | class BuilderWithToBuilderOnConstructor { 2 | private String one, two; 3 | 4 | private T foo; 5 | 6 | private int bar; 7 | 8 | @lombok.Builder(toBuilder = true) 9 | public BuilderWithToBuilderOnConstructor(String one, @lombok.Builder.ObtainVia(field = "foo") T bar) { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /testData/before/builder/Singular/Generic/Util/Collection/SingularIterable.java: -------------------------------------------------------------------------------- 1 | import lombok.Singular; 2 | 3 | @lombok.Builder 4 | public class SingularIterable { 5 | @Singular private Iterable rawTypes; 6 | @Singular private Iterable integers; 7 | @Singular private Iterable generics; 8 | @Singular private Iterable extendsGenerics; 9 | } 10 | -------------------------------------------------------------------------------- /testData/before/builder/Singular/Generic/Util/Collection/SingularList.java: -------------------------------------------------------------------------------- 1 | import lombok.Singular; 2 | 3 | import java.util.List; 4 | 5 | @lombok.Builder 6 | public class SingularList { 7 | @Singular private List rawTypes; 8 | @Singular private List integers; 9 | @Singular private List generics; 10 | @Singular private List extendsGenerics; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /testData/before/builder/Singular/Generic/Util/Collection/SingularSet.java: -------------------------------------------------------------------------------- 1 | import lombok.Singular; 2 | 3 | import java.util.Set; 4 | 5 | @lombok.Builder 6 | public class SingularSet { 7 | @Singular private Set rawTypes; 8 | @Singular private Set integers; 9 | @Singular private Set generics; 10 | @Singular private Set extendsGenerics; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /testData/before/constructors/ConflictingStaticConstructorNames.java: -------------------------------------------------------------------------------- 1 | @lombok.Data(staticConstructor="of") 2 | @lombok.NoArgsConstructor 3 | class ConflictingStaticConstructorNames { 4 | } -------------------------------------------------------------------------------- /testData/before/constructors/ConstructorEnum.java: -------------------------------------------------------------------------------- 1 | @lombok.RequiredArgsConstructor 2 | public enum ConstructorEnum { 3 | 4 | A(1), B(2); 5 | 6 | @lombok.Getter 7 | private final int x; 8 | } -------------------------------------------------------------------------------- /testData/before/constructors/NoArgsConstructorForced.java: -------------------------------------------------------------------------------- 1 | @lombok.NoArgsConstructor(force = true) 2 | public class NoArgsConstructorForced { 3 | final int x; 4 | final double y; 5 | final char c; 6 | final boolean b; 7 | final float f; 8 | final String s; 9 | byte z; 10 | } -------------------------------------------------------------------------------- /testData/before/data/DataAndBuilder.java: -------------------------------------------------------------------------------- 1 | import lombok.Builder; 2 | import lombok.Data; 3 | 4 | @Data 5 | @Builder 6 | public class DataAndBuilder { 7 | private int x; 8 | private int y; 9 | } 10 | -------------------------------------------------------------------------------- /testData/before/data/DataAndSuperBuilder.java: -------------------------------------------------------------------------------- 1 | import lombok.Data; 2 | import lombok.experimental.SuperBuilder; 3 | 4 | @Data 5 | @SuperBuilder 6 | public class DataAndSuperBuilder { 7 | private int x; 8 | private int y; 9 | } 10 | -------------------------------------------------------------------------------- /testData/before/data/DataExtended.java: -------------------------------------------------------------------------------- 1 | @lombok.Data 2 | @lombok.ToString(doNotUseGetters = true) 3 | class DataExtended { 4 | int x; 5 | } -------------------------------------------------------------------------------- /testData/before/data/DataExtendsRecursive.java: -------------------------------------------------------------------------------- 1 | import lombok.Data; 2 | 3 | import java.util.Date; 4 | 5 | @Data 6 | public class DataExtendsRecursive extends DataExtendsRecursive{ 7 | private int someInt; 8 | private String someString; 9 | private Date someDate; 10 | } 11 | -------------------------------------------------------------------------------- /testData/before/data/DataIgnore.java: -------------------------------------------------------------------------------- 1 | @lombok.Data class DataIgnore { 2 | final int x; 3 | String $name; 4 | } 5 | -------------------------------------------------------------------------------- /testData/before/data/DataOnEnum.java: -------------------------------------------------------------------------------- 1 | @lombok.Getter 2 | @lombok.ToString 3 | @lombok.RequiredArgsConstructor 4 | public enum DataOnEnum { 5 | A("hello"); 6 | private final String someField; 7 | } -------------------------------------------------------------------------------- /testData/before/data/DataStaticConstructor.java: -------------------------------------------------------------------------------- 1 | import lombok.Data; 2 | 3 | @Data(staticConstructor = "of") 4 | class Entity { 5 | private final String field; 6 | } -------------------------------------------------------------------------------- /testData/before/data/DataWithGetter.java: -------------------------------------------------------------------------------- 1 | @lombok.Data @lombok.Getter 2 | class DataWithGetter { 3 | private int x, y; 4 | private final String z; 5 | } -------------------------------------------------------------------------------- /testData/before/data/DataWithGetterNone.java: -------------------------------------------------------------------------------- 1 | @lombok.Data @lombok.Getter(lombok.AccessLevel.NONE) 2 | class DataWithGetterNone { 3 | private int x, y; 4 | private final String z; 5 | } -------------------------------------------------------------------------------- /testData/before/data/Klasse663.java: -------------------------------------------------------------------------------- 1 | import lombok.Data; 2 | 3 | @Data 4 | public class Klasse663 { 5 | private Object[] objects; 6 | 7 | public void setObjects(Object... objects) { 8 | } 9 | 10 | public static void main(String[] args) { 11 | new Klasse663().setObjects(1, 2, 3); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /testData/before/delegate/DelegateGenerics.java: -------------------------------------------------------------------------------- 1 | public class DelegateGenerics { 2 | @lombok.experimental.Delegate 3 | I1 target; 4 | } 5 | 6 | interface I1 extends I2 { 7 | } 8 | 9 | interface I2 extends I3 { 10 | } 11 | 12 | interface I3 { 13 | public T t(T t); 14 | 15 | public I i(I a); 16 | 17 | public A a(A a); 18 | } -------------------------------------------------------------------------------- /testData/before/delegate/DelegateOnMethods.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.Delegate; 2 | 3 | abstract class DelegateOnMethods { 4 | 5 | @Delegate 6 | public abstract Bar getBar(); 7 | 8 | public static interface Bar { 9 | void bar(java.util.ArrayList list); 10 | } 11 | } -------------------------------------------------------------------------------- /testData/before/delegate/DelegateOnStatic.java: -------------------------------------------------------------------------------- 1 | //skip compare content 2 | 3 | import lombok.experimental.Delegate; 4 | 5 | class DelegateOnStatic { 6 | @Delegate private static final java.lang.Runnable staticField = null; 7 | } 8 | 9 | class DelegateOnStaticMethod { 10 | @Delegate 11 | private static final java.lang.Runnable staticMethod() { 12 | return null; 13 | } 14 | 15 | ; 16 | } -------------------------------------------------------------------------------- /testData/before/delegate/DelegateWithDeprecated.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.Delegate; 2 | 3 | class DelegateWithDeprecated { 4 | @Delegate private Bar bar; 5 | 6 | private interface Bar { 7 | @Deprecated 8 | void deprecatedAnnotation(); 9 | 10 | /** 11 | * @deprecated 12 | */ 13 | void deprecatedComment(); 14 | 15 | void notDeprecated(); 16 | } 17 | } -------------------------------------------------------------------------------- /testData/before/delegate/DelegateWithVarargs2.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.Delegate; 2 | 3 | class DelegateWithVarargs2 { 4 | @Delegate private DelegateWithVarargs2.B bar; 5 | 6 | public class B { 7 | public void varargs(Object[]... keys) { } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /testData/before/equalsandhashcode/EqualsAndHashCodeConfigKeys1.java: -------------------------------------------------------------------------------- 1 | //CONF: lombok.equalsAndHashCode.callSuper = skip 2 | 3 | @lombok.EqualsAndHashCode 4 | class EqualsAndHashCodeConfigKeys1Parent { 5 | } 6 | 7 | @lombok.EqualsAndHashCode 8 | class EqualsAndHashCodeConfigKeys1 extends EqualsAndHashCodeConfigKeys1Parent { 9 | int x; 10 | } 11 | -------------------------------------------------------------------------------- /testData/before/equalsandhashcode/EqualsAndHashCodeExplicitEmptyOf.java: -------------------------------------------------------------------------------- 1 | @lombok.EqualsAndHashCode(of={}) 2 | class EqualsAndHashCode { 3 | int x; 4 | boolean[] y; 5 | Object[] z; 6 | String a; 7 | String b; 8 | } 9 | 10 | @lombok.EqualsAndHashCode(of="") 11 | final class EqualsAndHashCode2 { 12 | int x; 13 | long y; 14 | float f; 15 | double d; 16 | boolean b; 17 | } 18 | -------------------------------------------------------------------------------- /testData/before/equalsandhashcode/EqualsAndHashCodeExplicitInclude.java: -------------------------------------------------------------------------------- 1 | @lombok.EqualsAndHashCode(onlyExplicitlyIncluded = true) 2 | class EqualsAndHashCodeExplicitInclude { 3 | int x; 4 | } 5 | -------------------------------------------------------------------------------- /testData/before/equalsandhashcode/EqualsAndHashCodeExplicitOfAndExclude.java: -------------------------------------------------------------------------------- 1 | @lombok.EqualsAndHashCode(of = {"x", "z"}, exclude = {"x", "y"}) 2 | class EqualsAndHashCode { 3 | int x; 4 | boolean[] y; 5 | Object[] z; 6 | String a; 7 | String b; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /testData/before/equalsandhashcode/EqualsAndHashCodeOfAndExclude.java: -------------------------------------------------------------------------------- 1 | @lombok.EqualsAndHashCode(of={"x"}) 2 | final class EqualsAndHashCodeOf { 3 | int x; 4 | int y; 5 | } 6 | 7 | @lombok.EqualsAndHashCode(exclude={"y"}) 8 | final class EqualsAndHashCodeExclude { 9 | int x; 10 | int y; 11 | } 12 | -------------------------------------------------------------------------------- /testData/before/equalsandhashcode/EqualsAndHashCodeWithGenericsOnInners.java: -------------------------------------------------------------------------------- 1 | public class EqualsAndHashCodeWithGenericsOnInners { 2 | @lombok.EqualsAndHashCode class Inner { 3 | int x; 4 | } 5 | } 6 | 7 | -------------------------------------------------------------------------------- /testData/before/equalsandhashcode/EqualsAndHashCodeWithGenericsOnInnersInInterfaces.java: -------------------------------------------------------------------------------- 1 | public interface EqualsAndHashCodeWithGenericsOnInnersInInterfaces { 2 | @lombok.EqualsAndHashCode class Inner { 3 | int x; 4 | } 5 | } 6 | 7 | -------------------------------------------------------------------------------- /testData/before/equalsandhashcode/EqualsAndHashCodeWithOnParam.java: -------------------------------------------------------------------------------- 1 | @interface Nullable { 2 | } 3 | 4 | @lombok.EqualsAndHashCode(onParam=@__({@Nullable})) 5 | class EqualsAndHashCodeWithOnParam { 6 | int x; 7 | boolean[] y; 8 | Object[] z; 9 | String a; 10 | String b; 11 | } -------------------------------------------------------------------------------- /testData/before/fieldnameconstants/FieldNameConstantsBasic.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.FieldNameConstants; 2 | import lombok.AccessLevel; 3 | 4 | @FieldNameConstants(level = AccessLevel.PACKAGE) 5 | public class FieldNameConstantsBasic { 6 | String iAmADvdPlayer; 7 | int $skipMe; 8 | static double skipMeToo; 9 | @FieldNameConstants.Exclude int andMe; 10 | String butPrintMePlease; 11 | } 12 | -------------------------------------------------------------------------------- /testData/before/fieldnameconstants/FieldNameConstantsOldBasic.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.FieldNameConstants; 2 | import lombok.AccessLevel; 3 | 4 | @FieldNameConstants 5 | public class FieldNameConstantsBasic { 6 | @FieldNameConstants(level = AccessLevel.PROTECTED) 7 | String iAmADvdPlayer; 8 | int $skipMe; 9 | static double skipMeToo; 10 | String butPrintMePlease; 11 | } 12 | -------------------------------------------------------------------------------- /testData/before/getter/ClassNamedAfterGetter.java: -------------------------------------------------------------------------------- 1 | class GetFoo { 2 | @lombok.Getter private int foo; 3 | } 4 | -------------------------------------------------------------------------------- /testData/before/getter/GetterBoolean.java: -------------------------------------------------------------------------------- 1 | class Getter { 2 | @lombok.Getter boolean foo; 3 | @lombok.Getter boolean isBar; 4 | @lombok.Getter boolean hasBaz; 5 | } 6 | class MoreGetter { 7 | @lombok.Getter boolean foo; 8 | boolean hasFoo() { 9 | return true; 10 | } 11 | } 12 | class YetMoreGetter { 13 | @lombok.Getter boolean foo; 14 | boolean getFoo() { 15 | return true; 16 | } 17 | } -------------------------------------------------------------------------------- /testData/before/getter/GetterDeprecated.java: -------------------------------------------------------------------------------- 1 | import lombok.Getter; 2 | class GetterDeprecated { 3 | 4 | @Deprecated 5 | @Getter int annotation; 6 | 7 | /** 8 | * @deprecated 9 | */ 10 | @Getter int javadoc; 11 | } -------------------------------------------------------------------------------- /testData/before/getter/GetterEnum.java: -------------------------------------------------------------------------------- 1 | import lombok.AccessLevel; 2 | import lombok.Getter; 3 | import lombok.RequiredArgsConstructor; 4 | 5 | @RequiredArgsConstructor(access=AccessLevel.PRIVATE) 6 | enum GetterEnum { 7 | ONE(1, "One") 8 | ; 9 | @Getter private final int id; 10 | @Getter private final String name; 11 | } 12 | -------------------------------------------------------------------------------- /testData/before/getter/GetterLazy.java: -------------------------------------------------------------------------------- 1 | class GetterLazy { 2 | static class ValueType { 3 | } 4 | 5 | @lombok.Getter(lazy=true) 6 | private final ValueType fieldName = new ValueType(); 7 | } 8 | -------------------------------------------------------------------------------- /testData/before/getter/GetterLazyEahcToString.java: -------------------------------------------------------------------------------- 1 | @lombok.EqualsAndHashCode(doNotUseGetters = true) 2 | @lombok.ToString(doNotUseGetters = true) 3 | class GetterLazyEahcToString { 4 | @lombok.Getter(lazy=true) 5 | private final String value = ""; 6 | @lombok.Getter 7 | private final String value2 = ""; 8 | } 9 | -------------------------------------------------------------------------------- /testData/before/getter/GetterNone.java: -------------------------------------------------------------------------------- 1 | import lombok.AccessLevel; 2 | import lombok.Getter; 3 | 4 | @Getter 5 | class GetterNone { 6 | int i; 7 | @Getter(AccessLevel.NONE) int foo; 8 | } -------------------------------------------------------------------------------- /testData/before/getter/GetterOnMethod.java: -------------------------------------------------------------------------------- 1 | class GetterOnMethod { 2 | @lombok.Getter(onMethod=@_(@Deprecated)) int i; 3 | @lombok.Getter(onMethod=@_({@java.lang.Deprecated, @Test})) int j, k; 4 | 5 | public @interface Test { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/before/getter/GetterOnMethodErrors.java: -------------------------------------------------------------------------------- 1 | class PlaceFillerToMakeSurePositionIsRelevant { 2 | } 3 | @lombok.Getter(onMethod=@_(@Deprecated)) 4 | class GetterOnMethodErrors { 5 | private int test; 6 | } 7 | -------------------------------------------------------------------------------- /testData/before/getter/GetterOnStatic.java: -------------------------------------------------------------------------------- 1 | class Getter { 2 | @lombok.Getter static boolean foo; 3 | @lombok.Getter static int bar; 4 | } 5 | -------------------------------------------------------------------------------- /testData/before/getter/GetterPlain.java: -------------------------------------------------------------------------------- 1 | import lombok.Getter; 2 | class GetterPlain { 3 | @lombok.Getter int i; 4 | @Getter int foo; 5 | } -------------------------------------------------------------------------------- /testData/before/getter/GetterWithDollar.java: -------------------------------------------------------------------------------- 1 | class GetterWithDollar1 { 2 | @lombok.Getter int $i; 3 | } 4 | 5 | class GetterWithDollar2 { 6 | @lombok.Getter int $i; 7 | @lombok.Getter int i; 8 | } 9 | -------------------------------------------------------------------------------- /testData/before/getter/MultiFieldGetter.java: -------------------------------------------------------------------------------- 1 | import lombok.Getter; 2 | import lombok.AccessLevel; 3 | 4 | class MultiFieldGetter { 5 | @Getter(AccessLevel.PROTECTED) int x, y; 6 | } 7 | 8 | @Getter 9 | class MultiFieldGetter2 { 10 | @Getter(AccessLevel.PACKAGE) int x, y; 11 | } -------------------------------------------------------------------------------- /testData/before/jacksonized/JacksonizedSuperBuilderWithJsonDeserialize.java: -------------------------------------------------------------------------------- 1 | //version 8: Jackson deps are at least Java7+. 2 | @lombok.extern.jackson.Jacksonized 3 | @lombok.experimental.SuperBuilder 4 | @com.fasterxml.jackson.databind.annotation.JsonDeserialize 5 | public class JacksonizedSuperBuilderWithJsonDeserialize { 6 | int field1; 7 | } 8 | -------------------------------------------------------------------------------- /testData/before/logger/LoggerCommons.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.apachecommons.CommonsLog; 2 | 3 | @CommonsLog 4 | class LoggerCommons { 5 | } 6 | 7 | @CommonsLog 8 | class LoggerCommonsWithImport { 9 | } 10 | 11 | @CommonsLog(topic="DifferentName") 12 | class LoggerCommonsWithDifferentName { 13 | } 14 | -------------------------------------------------------------------------------- /testData/before/logger/LoggerFlogger.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.flogger.Flogger; 2 | 3 | @Flogger 4 | class LoggerFlogger { 5 | } 6 | -------------------------------------------------------------------------------- /testData/before/logger/LoggerJul.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.java.Log; 2 | 3 | @Log 4 | class LoggerJul { 5 | } 6 | 7 | @Log 8 | class LoggerJulWithImport { 9 | } 10 | 11 | @Log(topic="DifferentName") 12 | class LoggerJulWithDifferentName { 13 | } -------------------------------------------------------------------------------- /testData/before/logger/LoggerLog4j.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.log4j.Log4j; 2 | 3 | @Log4j 4 | class LoggerLog4j { 5 | } 6 | 7 | @Log4j 8 | class LoggerLog4jWithImport { 9 | } 10 | 11 | @Log4j(topic="DifferentName") 12 | class LoggerLog4jWithDifferentName { 13 | } -------------------------------------------------------------------------------- /testData/before/logger/LoggerLog4j2.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.log4j.Log4j2; 2 | 3 | @Log4j2 4 | class LoggerLog4j2 { 5 | } 6 | 7 | @Log4j2 8 | class LoggerLog4j2WithImport { 9 | } 10 | 11 | @Log4j2(topic="DifferentName") 12 | class LoggerLog4j2WithDifferentName { 13 | } -------------------------------------------------------------------------------- /testData/before/logger/LoggerSlf4j.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.slf4j.Slf4j; 2 | 3 | @Slf4j 4 | class LoggerSlf4j { 5 | } 6 | 7 | @Slf4j 8 | class LoggerSlf4jWithImport { 9 | } 10 | 11 | class LoggerSlf4jOuter { 12 | @Slf4j 13 | static class Inner { 14 | 15 | } 16 | } 17 | 18 | @Slf4j(topic="DifferentLogger") 19 | class LoggerSlf4jWithDifferentLoggerName { 20 | } -------------------------------------------------------------------------------- /testData/before/logger/LoggerSlf4jAlreadyExists.java: -------------------------------------------------------------------------------- 1 | @lombok.extern.slf4j.Slf4j 2 | class LoggerSlf4jAlreadyExists { 3 | int log; 4 | } -------------------------------------------------------------------------------- /testData/before/logger/LoggerSlf4jOnNonType.java: -------------------------------------------------------------------------------- 1 | class LoggerSlf4jOnNonType { 2 | @lombok.extern.slf4j.Slf4j 3 | void foo() { 4 | } 5 | } -------------------------------------------------------------------------------- /testData/before/logger/LoggerSlf4jWithPackage.java: -------------------------------------------------------------------------------- 1 | package before; 2 | @lombok.extern.slf4j.Slf4j 3 | class LoggerSlf4jWithPackage { 4 | } 5 | class LoggerSlf4jWithPackageOuter { 6 | @lombok.extern.slf4j.Slf4j 7 | static class Inner { 8 | } 9 | } -------------------------------------------------------------------------------- /testData/before/logger/LoggerXSlf4j.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.slf4j.XSlf4j; 2 | 3 | @XSlf4j 4 | class LoggerXSlf4j { 5 | } 6 | 7 | @XSlf4j 8 | class LoggerXSlf4jWithImport { 9 | } 10 | 11 | @XSlf4j(topic="DifferentName") 12 | class LoggerXSlf4jWithDifferentName { 13 | } -------------------------------------------------------------------------------- /testData/before/setter/SetterDeprecated.java: -------------------------------------------------------------------------------- 1 | import lombok.Setter; 2 | class SetterDeprecated { 3 | 4 | @Deprecated 5 | @Setter int annotation; 6 | 7 | /** 8 | * @deprecated 9 | */ 10 | @Setter int javadoc; 11 | } -------------------------------------------------------------------------------- /testData/before/setter/SetterOnMethodOnParam.java: -------------------------------------------------------------------------------- 1 | class SetterOnMethodOnParam { 2 | @lombok.Setter(onMethod=@_(@Deprecated)) int i; 3 | @lombok.Setter(onMethod=@_({@java.lang.Deprecated, @Test}), onParam=@_(@Test)) int j, k; 4 | 5 | public @interface Test { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/before/setter/SetterOnStatic.java: -------------------------------------------------------------------------------- 1 | class Setter { 2 | @lombok.Setter static boolean foo; 3 | @lombok.Setter static int bar; 4 | } 5 | -------------------------------------------------------------------------------- /testData/before/setter/SetterPlain.java: -------------------------------------------------------------------------------- 1 | import lombok.Setter; 2 | class SetterPlain { 3 | @lombok.Setter int i; 4 | @Setter int foo; 5 | } -------------------------------------------------------------------------------- /testData/before/setter/SetterWithDollar.java: -------------------------------------------------------------------------------- 1 | class SetterWithDollar1 { 2 | @lombok.Setter int $i; 3 | } 4 | 5 | class SetterWithDollar2 { 6 | @lombok.Setter int $i; 7 | @lombok.Setter int i; 8 | } 9 | -------------------------------------------------------------------------------- /testData/before/standardexception/StandardExceptions.java: -------------------------------------------------------------------------------- 1 | import lombok.AccessLevel; 2 | import lombok.experimental.StandardException; 3 | 4 | @StandardException 5 | class EmptyException extends Exception { 6 | } 7 | 8 | @StandardException(access = AccessLevel.PROTECTED) 9 | class NoArgsException extends Exception { 10 | public NoArgsException() { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/before/superbuilder/Singular/Generic/Util/Collection/SingularIterable.java: -------------------------------------------------------------------------------- 1 | import lombok.Singular; 2 | 3 | @lombok.experimental.SuperBuilder 4 | public class SingularIterable { 5 | @Singular private Iterable rawTypes; 6 | @Singular private Iterable integers; 7 | @Singular private Iterable generics; 8 | @Singular private Iterable extendsGenerics; 9 | } 10 | -------------------------------------------------------------------------------- /testData/before/superbuilder/Singular/Generic/Util/Collection/SingularSet.java: -------------------------------------------------------------------------------- 1 | import lombok.Singular; 2 | 3 | import java.util.Set; 4 | 5 | @lombok.experimental.SuperBuilder 6 | public class SingularSet { 7 | @Singular private Set rawTypes; 8 | @Singular private Set integers; 9 | @Singular private Set generics; 10 | @Singular private Set extendsGenerics; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /testData/before/tostring/ToStringAutoExclude.java: -------------------------------------------------------------------------------- 1 | @lombok.ToString 2 | class ToStringAutoExclude { 3 | int x; 4 | String $a; 5 | transient String b; 6 | } 7 | 8 | @lombok.ToString 9 | class ToStringAutoExclude2 { 10 | int x; 11 | @lombok.ToString.Include 12 | String $a; 13 | transient String b; 14 | } 15 | -------------------------------------------------------------------------------- /testData/before/tostring/ToStringExplicitEmptyOf.java: -------------------------------------------------------------------------------- 1 | @lombok.ToString(of = {}) 2 | class ToStringExplicitEmptyOf1 { 3 | int x; 4 | String name; 5 | } 6 | 7 | @lombok.ToString(of = "") 8 | class ToStringExplicitEmptyOf2 { 9 | int x; 10 | String name; 11 | } 12 | -------------------------------------------------------------------------------- /testData/before/tostring/ToStringExplicitInclude.java: -------------------------------------------------------------------------------- 1 | @lombok.ToString(onlyExplicitlyIncluded = true) 2 | class ToStringExplicitInclude { 3 | int x; 4 | } 5 | -------------------------------------------------------------------------------- /testData/before/tostring/ToStringExplicitOfAndExclude.java: -------------------------------------------------------------------------------- 1 | @lombok.ToString(of = {"x", "z"}, exclude = "x") 2 | class ToStringExplicitOfAndExclude { 3 | int x; 4 | float y; 5 | long z; 6 | String name; 7 | } 8 | -------------------------------------------------------------------------------- /testData/before/tostring/ToStringNewStyle.java: -------------------------------------------------------------------------------- 1 | import lombok.ToString; 2 | 3 | @ToString 4 | public class ToStringNewStyle { 5 | @ToString.Include(name = "a") int b; 6 | double c; 7 | int f; 8 | @ToString.Include(name = "e") int d; 9 | @ToString.Include int f() { 10 | return 0; 11 | } 12 | int g; 13 | @ToString.Include(rank = -1) int h; 14 | int i; 15 | @ToString.Exclude int j; 16 | } 17 | -------------------------------------------------------------------------------- /testData/before/tostring/ToStringPlain.java: -------------------------------------------------------------------------------- 1 | import lombok.ToString; 2 | 3 | @lombok.ToString class ToString1 { 4 | int x; 5 | String name; 6 | } 7 | 8 | @ToString 9 | class ToString2 { 10 | int x; 11 | String name; 12 | } 13 | -------------------------------------------------------------------------------- /testData/before/tostring/ToStringSimpleClassName.java: -------------------------------------------------------------------------------- 1 | package some.pack.age; 2 | 3 | @lombok.ToString 4 | public class ToStringSimpleClassName { 5 | int x; 6 | String name; 7 | 8 | @lombok.ToString 9 | static class InnerStaticClass { 10 | String someProperty; 11 | } 12 | 13 | @lombok.ToString 14 | class InnerClass { 15 | String someProperty; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /testData/before/tostring/ToStringWithConstantRefInOf.java: -------------------------------------------------------------------------------- 1 | //skip compare contents 2 | import lombok.ToString; 3 | 4 | @ToString(of = ToStringWithConstantRefInOf.FIELD_NAME) 5 | public class ToStringWithConstantRefInOf { 6 | static final String FIELD_NAME = "id"; 7 | private String id; 8 | private int whatever; 9 | } 10 | 11 | -------------------------------------------------------------------------------- /testData/before/tostring/ToStringWithNamedExistingMethods.java: -------------------------------------------------------------------------------- 1 | import lombok.ToString; 2 | 3 | @ToString 4 | public class ToStringWithNamedExistingMethods { 5 | 6 | private int someInt; 7 | 8 | public String toString(String string) { 9 | return string; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /testData/before/utilityclass/UtilityClassPlain.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.UtilityClass 2 | public class UtilityClassPlain { 3 | private final int CONSTANT = 5; 4 | 5 | public int addSomething(int in) { 6 | return in + CONSTANT; 7 | } 8 | 9 | } -------------------------------------------------------------------------------- /testData/before/val/TrickyTypeResolution2.java: -------------------------------------------------------------------------------- 1 | import lombok.*; 2 | class DoNothingDueToTopLevel { 3 | void test() { 4 | val x = null; 5 | } 6 | } 7 | 8 | class val {} 9 | -------------------------------------------------------------------------------- /testData/before/val/ValErrors.java: -------------------------------------------------------------------------------- 1 | import lombok.val; 2 | 3 | public class ValErrors { 4 | public void unresolvableExpression() { 5 | val c = d; 6 | } 7 | 8 | public void arrayInitializer() { 9 | val e = { "foo", "bar"}; 10 | } 11 | } -------------------------------------------------------------------------------- /testData/before/val/ValInBasicFor.java: -------------------------------------------------------------------------------- 1 | import lombok.val; 2 | 3 | public class ValInBasicFor { 4 | public void basicFor() { 5 | java.util.List list = java.util.Arrays.asList("Hello, World!"); 6 | for (val shouldBe = 1, marked = "", error = 1.0; ; ) { 7 | System.out.println(""); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /testData/before/val/ValInFor.java: -------------------------------------------------------------------------------- 1 | import lombok.val; 2 | 3 | public class ValInFor { 4 | public void enhancedFor() { 5 | java.util.List list = java.util.Arrays.asList("Hello, World!"); 6 | for (val shouldBeString : list) { 7 | System.out.println(shouldBeString.toLowerCase()); 8 | val shouldBeString2 = shouldBeString; 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /testData/before/val/ValInMultiDeclaration.java: -------------------------------------------------------------------------------- 1 | import lombok.val; 2 | public class ValInMultiDeclaration { 3 | public void test() { 4 | val x = 10, y = ""; 5 | } 6 | } -------------------------------------------------------------------------------- /testData/before/val/ValInTryWithResources.java: -------------------------------------------------------------------------------- 1 | //version 7 2 | import lombok.val; 3 | import java.io.IOException; 4 | 5 | public class ValInTryWithResources { 6 | public void whyTryInsteadOfCleanup() throws IOException { 7 | try (val in = getClass().getResourceAsStream("ValInTryWithResources.class")) { 8 | val i = in; 9 | val j = in.read(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /testData/before/val/ValWithLabel.java: -------------------------------------------------------------------------------- 1 | import lombok.val; 2 | 3 | public class ValWithLabel { 4 | { 5 | LABEL: for (val x : new String[0]) { 6 | if (x.toLowerCase() == null) { 7 | continue LABEL; 8 | } 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /testData/before/value/ValueAndBuilder93.java: -------------------------------------------------------------------------------- 1 | @lombok.Builder 2 | @lombok.Value 3 | public class Zoo { 4 | private String meerkat; 5 | private String warthog; 6 | 7 | public Zoo create() { 8 | return new Zoo("tomon", "pumbaa"); 9 | } 10 | } -------------------------------------------------------------------------------- /testData/before/value/ValueAndWither.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.Wither 2 | @lombok.Value 3 | public class ValueAndWither { 4 | private final String myField; 5 | 6 | public void methodCallingWith() { 7 | this.withMyField(""); 8 | } 9 | } -------------------------------------------------------------------------------- /testData/before/value/ValueAndWitherAndRequiredConstructor.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.Wither 2 | @lombok.Value 3 | @lombok.RequiredArgsConstructor(access = lombok.AccessLevel.PROTECTED) 4 | public class ValueAndWither { 5 | private final String myField; 6 | 7 | public void methodCallingWith() { 8 | this.withMyField(""); 9 | } 10 | } -------------------------------------------------------------------------------- /testData/before/value/ValueBuilder.java: -------------------------------------------------------------------------------- 1 | import lombok.Value; 2 | import lombok.Builder; 3 | 4 | @Value 5 | @Builder 6 | public class ValueBuilder { 7 | String o1; 8 | private int o2; 9 | private final double o3; 10 | 11 | public static void main(String[] args) { 12 | ValueBuilder builder = new ValueBuilder("1", 2, 3.0); 13 | System.out.println(builder); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /testData/before/value/ValueIssue78.java: -------------------------------------------------------------------------------- 1 | import lombok.Value; 2 | 3 | @Value 4 | public class Foo { 5 | String one; 6 | String two = "foo"; 7 | 8 | public static void main(String[] args) { 9 | System.out.println(new Foo("one")); 10 | } 11 | } -------------------------------------------------------------------------------- /testData/before/value/ValueIssue94.java: -------------------------------------------------------------------------------- 1 | import lombok.RequiredArgsConstructor; 2 | import lombok.Value; 3 | import lombok.experimental.NonFinal; 4 | 5 | @Value 6 | @RequiredArgsConstructor 7 | public class Val { 8 | 9 | @NonFinal 10 | String nonFinal; 11 | 12 | String otherFinal; 13 | 14 | public void test() { 15 | Val val = new Val("otherFinal"); 16 | } 17 | } -------------------------------------------------------------------------------- /testData/before/value/ValuePlain.java: -------------------------------------------------------------------------------- 1 | import lombok.Value; 2 | @lombok.Value class Value1 { 3 | final int x; 4 | String name; 5 | } 6 | @Value @lombok.experimental.NonFinal class Value2 { 7 | public int x; 8 | String name; 9 | } 10 | @Value class Value3 { 11 | @lombok.experimental.NonFinal int x; 12 | int y; 13 | } -------------------------------------------------------------------------------- /testData/before/value/ValueStarImport.java: -------------------------------------------------------------------------------- 1 | import lombok.*; 2 | 3 | @Value 4 | class ValueStarImport { 5 | } 6 | -------------------------------------------------------------------------------- /testData/before/value/ValueWithNonDefaultConstructor.java: -------------------------------------------------------------------------------- 1 | import lombok.Value; 2 | 3 | @Value 4 | public class ValueWithNonDefaultConstructor { 5 | public ValueWithNonDefaultConstructor(String msg) { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/before/with/WithAndAllArgsConstructor.java: -------------------------------------------------------------------------------- 1 | @lombok.AllArgsConstructor 2 | class WithAndAllArgsConstructor { 3 | @lombok.With J test; 4 | 5 | @lombok.With java.util.List test2; 6 | 7 | final int x = 10; 8 | 9 | int y = 20; 10 | 11 | final int z; 12 | } 13 | -------------------------------------------------------------------------------- /testData/before/with/WithInnerAnnotation.java: -------------------------------------------------------------------------------- 1 | // unchanged 2 | class WithInnerAnnotation { 3 | @interface Inner { 4 | int bar() default 42; 5 | } 6 | } -------------------------------------------------------------------------------- /testData/before/with/WithMethodAbstract.java: -------------------------------------------------------------------------------- 1 | abstract class WithMethodAbstract { 2 | @lombok.With String foo; 3 | } -------------------------------------------------------------------------------- /testData/before/with/WithMethodMarkedDeprecated.java: -------------------------------------------------------------------------------- 1 | import lombok.With; 2 | 3 | class WithMethodMarkedDeprecated { 4 | 5 | @Deprecated 6 | @With 7 | int annotation; 8 | 9 | /** 10 | * @deprecated 11 | */ 12 | @With 13 | int javadoc; 14 | 15 | WithMethodMarkedDeprecated(int annotation, int javadoc) { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /testData/before/with/WithOnStatic.java: -------------------------------------------------------------------------------- 1 | class WithOnStatic { 2 | @lombok.With static boolean foo; 3 | @lombok.With static int bar; 4 | } 5 | -------------------------------------------------------------------------------- /testData/before/with/WithPlain.java: -------------------------------------------------------------------------------- 1 | import lombok.With; 2 | 3 | class WithPlain { 4 | @lombok.With int i; 5 | @With 6 | final int foo; 7 | 8 | WithPlain(int i, int foo) { 9 | this.i = i; 10 | this.foo = foo; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/before/with/WithWithDollar.java: -------------------------------------------------------------------------------- 1 | class WithWithDollar { 2 | @lombok.With int $i; 3 | } 4 | -------------------------------------------------------------------------------- /testData/before/with/WithWithGenerics.java: -------------------------------------------------------------------------------- 1 | class WithWithGenerics { 2 | @lombok.With J test; 3 | @lombok.With java.util.List test2; 4 | @lombok.With java.util.List test3; 5 | int $i; 6 | 7 | public WithWithGenerics(J test, java.util.List test2, java.util.List test3) { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /testData/before/with/WitherLegacyStar.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.Wither; 2 | 3 | class WitherLegacyStar { 4 | @Wither 5 | int i; 6 | 7 | WitherLegacyStar(int i) { 8 | this.i = i; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /testData/before/wither/WitherAndAccessors.java: -------------------------------------------------------------------------------- 1 | @lombok.AllArgsConstructor 2 | class WitherAndAccessors { 3 | 4 | final int x = 10; 5 | 6 | int y = 20; 7 | 8 | @lombok.experimental.Accessors(fluent=true) 9 | @lombok.experimental.Wither final int z; 10 | } 11 | -------------------------------------------------------------------------------- /testData/before/wither/WitherAndAllArgsConstructor.java: -------------------------------------------------------------------------------- 1 | @lombok.AllArgsConstructor 2 | class WitherAndAllArgsConstructor { 3 | @lombok.experimental.Wither J test; 4 | 5 | @lombok.experimental.Wither java.util.List test2; 6 | 7 | final int x = 10; 8 | 9 | int y = 20; 10 | 11 | final int z; 12 | } -------------------------------------------------------------------------------- /testData/before/wither/WitherDeprecated.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.Wither; 2 | 3 | class WitherDeprecated { 4 | 5 | @Deprecated 6 | @Wither int annotation; 7 | 8 | /** 9 | * @deprecated 10 | */ 11 | @Wither int javadoc; 12 | 13 | WitherDeprecated(int annotation, int javadoc) { 14 | } 15 | } -------------------------------------------------------------------------------- /testData/before/wither/WitherOnStatic.java: -------------------------------------------------------------------------------- 1 | class WitherOnStatic { 2 | @lombok.experimental.Wither static boolean foo; 3 | @lombok.experimental.Wither static int bar; 4 | } 5 | -------------------------------------------------------------------------------- /testData/before/wither/WitherPlain.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.Wither; 2 | class WitherPlain { 3 | @lombok.experimental.Wither int i; 4 | @Wither final int foo; 5 | 6 | WitherPlain(int i, int foo) { 7 | this.i = i; 8 | this.foo = foo; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /testData/before/wither/WitherWithAbstract.java: -------------------------------------------------------------------------------- 1 | abstract class WitherWithAbstract { 2 | @lombok.experimental.Wither String foo; 3 | } -------------------------------------------------------------------------------- /testData/before/wither/WitherWithDollar.java: -------------------------------------------------------------------------------- 1 | class WitherWithDollar { 2 | @lombok.experimental.Wither int $i; 3 | } 4 | -------------------------------------------------------------------------------- /testData/before/wither/WitherWithGenerics.java: -------------------------------------------------------------------------------- 1 | class WitherWithGenerics { 2 | @lombok.experimental.Wither J test; 3 | @lombok.experimental.Wither java.util.List test2; 4 | @lombok.experimental.Wither java.util.List test3; 5 | int $i; 6 | 7 | public WitherWithGenerics(J test, java.util.List test2, java.util.List test3) { 8 | } 9 | } -------------------------------------------------------------------------------- /testData/configsystem/accessors/capitalization/before/BuilderWithJavaBeansSpecCapitalization.java: -------------------------------------------------------------------------------- 1 | //CONF: lombok.accessors.capitalization = beanspec 2 | @lombok.Builder(setterPrefix = "set") 3 | class BuilderWithJavaBeansSpecCapitalization { 4 | @lombok.Singular("z") java.util.List a; 5 | @lombok.Singular("yField") java.util.List aField; 6 | String bField; 7 | } 8 | -------------------------------------------------------------------------------- /testData/configsystem/accessors/capitalization/before/GetterWithJavaBeansSpecCapitalization.java: -------------------------------------------------------------------------------- 1 | //CONF: lombok.accessors.capitalization = beanspec 2 | class GetterWithJavaBeansSpecCapitalization { 3 | @lombok.Getter int a; 4 | @lombok.Getter int aField; 5 | } 6 | -------------------------------------------------------------------------------- /testData/configsystem/accessors/capitalization/before/SetterWithJavaBeansSpecCapitalization.java: -------------------------------------------------------------------------------- 1 | //CONF: lombok.accessors.capitalization = beanspec 2 | class SetterWithJavaBeansSpecCapitalization { 3 | @lombok.Setter int a; 4 | @lombok.Setter int aField; 5 | } 6 | -------------------------------------------------------------------------------- /testData/configsystem/accessors/capitalization/before/ValueWithJavaBeansSpecCapitalization.java: -------------------------------------------------------------------------------- 1 | //CONF: lombok.accessors.capitalization = beanspec 2 | @lombok.Value 3 | class ValueWithJavaBeansSpecCapitalization { 4 | final int aField; 5 | } 6 | -------------------------------------------------------------------------------- /testData/configsystem/accessors/capitalization/before/WithWithJavaBeansSpecCapitalization.java: -------------------------------------------------------------------------------- 1 | //CONF: lombok.accessors.capitalization = beanspec 2 | @lombok.With 3 | class WithWithJavaBeansSpecCapitalization { 4 | int aField; 5 | 6 | WithWithJavaBeansSpecCapitalization(int aField) { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testData/configsystem/accessors/capitalization/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.accessors.capitalization = beanspec 2 | 3 | config.stopBubbling = true 4 | -------------------------------------------------------------------------------- /testData/configsystem/accessors/chain/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.accessors.chain = true 2 | 3 | config.stopBubbling = true -------------------------------------------------------------------------------- /testData/configsystem/accessors/fluent/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.accessors.fluent = true 2 | 3 | config.stopBubbling = true -------------------------------------------------------------------------------- /testData/configsystem/accessors/makefinal/after/AccessorsMakeFinalLombokConfig.java: -------------------------------------------------------------------------------- 1 | class AccessorsMakeFinalLombokConfig { 2 | private String test; 3 | 4 | public final void setTest(final String test) { 5 | this.test = test; 6 | } 7 | } -------------------------------------------------------------------------------- /testData/configsystem/accessors/makefinal/before/AccessorsMakeFinalLombokConfig.java: -------------------------------------------------------------------------------- 1 | //CONF: lombok.Accessors.makeFinal = true 2 | 3 | class AccessorsMakeFinalLombokConfig { 4 | @lombok.Setter 5 | private String test; 6 | } 7 | -------------------------------------------------------------------------------- /testData/configsystem/accessors/makefinal/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.Accessors.makeFinal = true 2 | 3 | config.stopBubbling = true -------------------------------------------------------------------------------- /testData/configsystem/accessors/prefix/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.accessors.prefix +=m 2 | lombok.accessors.prefix +=p 3 | lombok.accessors.prefix +=m_ 4 | lombok.accessors.prefix -=a 5 | 6 | clear lombok.accessors.fluent 7 | clear lombok.accessors.chain 8 | 9 | config.stopBubbling = true -------------------------------------------------------------------------------- /testData/configsystem/accessors/superbuilder/before/SuperBuilderWithPrefixes.java: -------------------------------------------------------------------------------- 1 | //CONF: lombok.accessors.prefix += m 2 | //CONF: lombok.accessors.prefix += x 3 | @lombok.experimental.SuperBuilder 4 | class SuperBuilderWithPrefixes { 5 | int mField; 6 | int xOtherField; 7 | @lombok.Singular java.util.List mItems; 8 | } 9 | -------------------------------------------------------------------------------- /testData/configsystem/accessors/superbuilder/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.accessors.prefix +=m 2 | lombok.accessors.prefix +=x 3 | 4 | config.stopBubbling = true 5 | -------------------------------------------------------------------------------- /testData/configsystem/builder/className/before/BuilderWithConfiguredClassName.java: -------------------------------------------------------------------------------- 1 | import lombok.Builder; 2 | 3 | @Builder 4 | public class BuilderWithConfiguredClassName { 5 | 6 | private final String field; 7 | 8 | public static final class Builder { 9 | 10 | public Builder copy() { 11 | return builder().field(field); 12 | } 13 | 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /testData/configsystem/builder/className/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.builder.className = Builder 2 | 3 | config.stopbubbling = true 4 | -------------------------------------------------------------------------------- /testData/configsystem/builder/jacksonized/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.builder.className = Test*Name 2 | 3 | config.stopbubbling = true 4 | -------------------------------------------------------------------------------- /testData/configsystem/completion/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.log.fieldName = LOGGER1 2 | 3 | config.stopBubbling = true -------------------------------------------------------------------------------- /testData/configsystem/constructor/addConstructorProperties/after/NoArgsConstructorTest.java: -------------------------------------------------------------------------------- 1 | public class NoArgsConstructorTest { 2 | 3 | private String someProperty; 4 | 5 | public NoArgsConstructorTest() { 6 | } 7 | 8 | public static void main(String[] args) { 9 | final NoArgsConstructorTest test = new NoArgsConstructorTest(); 10 | System.out.println(test); 11 | } 12 | } -------------------------------------------------------------------------------- /testData/configsystem/constructor/addConstructorProperties/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.anyConstructor.addConstructorProperties = true 2 | 3 | config.stopBubbling = true 4 | -------------------------------------------------------------------------------- /testData/configsystem/constructor/copyableAnnotations/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.anyConstructor.addConstructorProperties = true 2 | lombok.copyableAnnotations += javax.inject.Named 3 | 4 | config.stopBubbling = true 5 | -------------------------------------------------------------------------------- /testData/configsystem/constructor/default/after/NoArgsConstructorTest.java: -------------------------------------------------------------------------------- 1 | public class NoArgsConstructorTest { 2 | 3 | private String someProperty; 4 | 5 | public NoArgsConstructorTest() { 6 | } 7 | 8 | public static void main(String[] args) { 9 | final NoArgsConstructorTest test = new NoArgsConstructorTest(); 10 | System.out.println(test); 11 | } 12 | } -------------------------------------------------------------------------------- /testData/configsystem/constructor/default/before/lombok.config: -------------------------------------------------------------------------------- 1 | config.stopBubbling = true 2 | -------------------------------------------------------------------------------- /testData/configsystem/constructor/suppressConstructorProperties/after/NoArgsConstructorTest.java: -------------------------------------------------------------------------------- 1 | public class NoArgsConstructorTest { 2 | 3 | private String someProperty; 4 | 5 | public NoArgsConstructorTest() { 6 | } 7 | 8 | public static void main(String[] args) { 9 | final NoArgsConstructorTest test = new NoArgsConstructorTest(); 10 | System.out.println(test); 11 | } 12 | } -------------------------------------------------------------------------------- /testData/configsystem/constructor/suppressConstructorProperties/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.anyConstructor.suppressConstructorProperties = true 2 | 3 | config.stopBubbling = true -------------------------------------------------------------------------------- /testData/configsystem/data/extraPrivate/before/DataNegativeTest.java: -------------------------------------------------------------------------------- 1 | @lombok.Data 2 | public class DataNegativeTest { 3 | private int intProperty; 4 | private String stringProperty; 5 | } 6 | -------------------------------------------------------------------------------- /testData/configsystem/data/extraPrivate/before/DataTest.java: -------------------------------------------------------------------------------- 1 | @lombok.Data 2 | public class DataTest { 3 | private final int intProperty; 4 | private String stringProperty; 5 | } 6 | -------------------------------------------------------------------------------- /testData/configsystem/data/extraPrivate/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.noArgsConstructor.extraPrivate = true 2 | 3 | config.stopBubbling = true 4 | -------------------------------------------------------------------------------- /testData/configsystem/equalsandhashcode/callSuper/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.equalsAndHashCode.callSuper = call 2 | 3 | config.stopBubbling = true -------------------------------------------------------------------------------- /testData/configsystem/equalsandhashcode/doNotUseGetters/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.equalsAndHashCode.doNotUseGetters = true 2 | 3 | config.stopBubbling = true -------------------------------------------------------------------------------- /testData/configsystem/fieldDefaults/defaultFinal/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.fieldDefaults.defaultFinal = true 2 | 3 | config.stopBubbling = true 4 | -------------------------------------------------------------------------------- /testData/configsystem/fieldDefaults/defaultPrivate/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.fieldDefaults.defaultPrivate = true 2 | 3 | config.stopBubbling = true 4 | -------------------------------------------------------------------------------- /testData/configsystem/fieldnameconstants/configuration/after/FieldNameConstantsConfigKeys.java: -------------------------------------------------------------------------------- 1 | public class FieldNameConstantsConfigKeys { 2 | String iAmADvdPlayer; 3 | @java.lang.SuppressWarnings("all") 4 | public static final class Foobar { 5 | public static final java.lang.String iAmADvdPlayer = "iAmADvdPlayer"; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/configsystem/fieldnameconstants/configuration/before/FieldNameConstantsConfigKeys.java: -------------------------------------------------------------------------------- 1 | //CONF: lombok.fieldNameConstants.innerTypeName = Foobar 2 | 3 | @lombok.experimental.FieldNameConstants 4 | public class FieldNameConstantsConfigKeys { 5 | String iAmADvdPlayer; 6 | } 7 | -------------------------------------------------------------------------------- /testData/configsystem/fieldnameconstants/configuration/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.fieldNameConstants.innerTypeName = Foobar 2 | 3 | config.stopBubbling = true 4 | -------------------------------------------------------------------------------- /testData/configsystem/fieldnameconstants/uppercase/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.fieldNameConstants.uppercase = true 2 | 3 | config.stopBubbling = true 4 | -------------------------------------------------------------------------------- /testData/configsystem/getter/noIsPrefix/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.getter.noIsPrefix = true 2 | 3 | config.stopBubbling = true -------------------------------------------------------------------------------- /testData/configsystem/log/customComplex/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.log.custom.declaration = pack.age.Outer.InnerLogger pack.age.Outer.Builder.create(TOPIC,NULL)(NAME,TYPE,NAME) 2 | 3 | config.stopBubbling = true 4 | -------------------------------------------------------------------------------- /testData/configsystem/log/customSimple/after/CustomLogTest.java: -------------------------------------------------------------------------------- 1 | public class CustomLogTest { 2 | private static final MyLogger log = MyLogger.create(); 3 | 4 | public void logSomething() { 5 | log.info("Hello World!"); 6 | } 7 | 8 | public static void main(String[] args) { 9 | log.info("Test"); 10 | new CustomLogTest().logSomething(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/configsystem/log/customSimple/before/CustomLogTest.java: -------------------------------------------------------------------------------- 1 | import lombok.CustomLog; 2 | 3 | @CustomLog 4 | public class CustomLogTest { 5 | 6 | public void logSomething() { 7 | log.info("Hello World!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | log.info("Test"); 12 | new CustomLogTest().logSomething(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /testData/configsystem/log/customSimple/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.log.custom.declaration = MyLogger.create() 2 | 3 | config.stopBubbling = true 4 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldIsStatic/after/Log4jTest.java: -------------------------------------------------------------------------------- 1 | public class Log4jTest { 2 | 3 | private final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(Log4jTest.class); 4 | 5 | public void logSomething(){ 6 | log.info("Hello World!"); 7 | } 8 | 9 | public static void main(String[] args) { 10 | new Log4jTest().logSomething(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldIsStatic/after/LogTest.java: -------------------------------------------------------------------------------- 1 | public class LogTest { 2 | 3 | private final java.util.logging.Logger log = java.util.logging.Logger.getLogger(LogTest.class.getName()); 4 | 5 | public void logSomething(){ 6 | log.info("Hello World!"); 7 | } 8 | 9 | public static void main(String[] args) { 10 | new LogTest().logSomething(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldIsStatic/after/Slf4jTest.java: -------------------------------------------------------------------------------- 1 | public class Slf4jTest { 2 | 3 | private final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(Slf4jTest.class); 4 | 5 | public void logSomething(){ 6 | log.info("Hello World!"); 7 | } 8 | 9 | public static void main(String[] args) { 10 | new Slf4jTest().logSomething(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldIsStatic/after/XSlf4jTest.java: -------------------------------------------------------------------------------- 1 | public class XSlf4jTest { 2 | 3 | private final org.slf4j.ext.XLogger log = org.slf4j.ext.XLoggerFactory.getXLogger(XSlf4jTest.class); 4 | 5 | public void logSomething(){ 6 | log.info("Hello World!"); 7 | } 8 | 9 | public static void main(String[] args) { 10 | new XSlf4jTest().logSomething(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldIsStatic/before/CommonsLogTest.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.apachecommons.CommonsLog; 2 | 3 | @CommonsLog 4 | public class CommonsLogTest { 5 | 6 | public void logSomething(){ 7 | log.info("Hello World!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | new CommonsLogTest().logSomething(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldIsStatic/before/FloggerTest.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.flogger.Flogger; 2 | 3 | @CommonsLog 4 | public class FloggerTest { 5 | 6 | public void logSomething(){ 7 | log.atInfo().log("Hello World!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | new FloggerTest().logSomething(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldIsStatic/before/JBossLogTest.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.jbosslog.JBossLog; 2 | 3 | @JBossLog 4 | public class JBossLogTest { 5 | 6 | public void logSomething(){ 7 | log.info("Hello World!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | new JBossLogTest().logSomething(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldIsStatic/before/Log4j2Test.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.log4j.Log4j2; 2 | 3 | @Log4j2 4 | public class Log4j2Test { 5 | 6 | public void logSomething(){ 7 | log.info("Hello World!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | new Log4j2Test().logSomething(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldIsStatic/before/Log4jTest.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.log4j.Log4j; 2 | 3 | @Log4j 4 | public class Log4jTest { 5 | 6 | public void logSomething(){ 7 | log.info("Hello World!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | new Log4jTest().logSomething(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldIsStatic/before/LogTest.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.java.Log; 2 | 3 | @Log 4 | public class LogTest { 5 | 6 | public void logSomething(){ 7 | log.info("Hello World!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | new LogTest().logSomething(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldIsStatic/before/Slf4jTest.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.slf4j.Slf4j; 2 | 3 | @Slf4j 4 | public class Slf4jTest { 5 | public void logSomething(){ 6 | log.info("Hello World!"); 7 | } 8 | 9 | public static void main(String[] args) { 10 | new Slf4jTest().logSomething(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldIsStatic/before/Slf4jWithReqConstructor.java: -------------------------------------------------------------------------------- 1 | import lombok.RequiredArgsConstructor; 2 | import lombok.extern.slf4j.Slf4j; 3 | 4 | @Slf4j 5 | @RequiredArgsConstructor 6 | public class Slf4jWithReqConstructor { 7 | private final String sampleField; 8 | 9 | public static void main(String... args) { 10 | new Slf4jWithReqConstructor("demo"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldIsStatic/before/XSlf4jTest.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.slf4j.XSlf4j; 2 | 3 | @XSlf4j 4 | public class XSlf4jTest { 5 | 6 | public void logSomething(){ 7 | log.info("Hello World!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | new XSlf4jTest().logSomething(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldIsStatic/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.log.fieldIsStatic = false 2 | 3 | config.stopBubbling = true -------------------------------------------------------------------------------- /testData/configsystem/log/fieldName/before/FloggerTest.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.flogger.Flogger; 2 | 3 | @Flogger 4 | public class FloggerTest { 5 | 6 | public void logSomething(){ 7 | LOGGER1.atInfo.log("Hello World!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | LOGGER1.atInfo.log("Test"); 12 | new FloggerTest().logSomething(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldName/before/JBossLogTest.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.jbosslog.JBossLog; 2 | 3 | @JBossLog 4 | public class JBossLogTest { 5 | 6 | public void logSomething() { 7 | LOGGER1.info("Hello World!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | LOGGER1.info("Test"); 12 | new JBossLogTest().logSomething(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldName/before/Log4j2Test.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.log4j.Log4j2; 2 | 3 | @Log4j2 4 | public class Log4j2Test { 5 | 6 | public void logSomething(){ 7 | LOGGER1.info("Hello World!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | LOGGER1.info("Test"); 12 | new Log4j2Test().logSomething(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldName/before/Log4jTest.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.log4j.Log4j; 2 | 3 | @Log4j 4 | public class Log4jTest { 5 | 6 | public void logSomething(){ 7 | LOGGER1.info("Hello World!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | LOGGER1.info("Test"); 12 | new Log4jTest().logSomething(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldName/before/LogTest.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.java.Log; 2 | 3 | @Log 4 | public class LogTest { 5 | 6 | public void logSomething(){ 7 | LOGGER1.info("Hello World!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | LOGGER1.info("Test"); 12 | new LogTest().logSomething(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldName/before/Slf4jTest.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.slf4j.Slf4j; 2 | 3 | @Slf4j 4 | public class Slf4jTest { 5 | 6 | public void logSomething(){ 7 | LOGGER1.info("Hello World!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | LOGGER1.info("Test"); 12 | new Slf4jTest().logSomething(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldName/before/XSlf4jTest.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.slf4j.XSlf4j; 2 | 3 | @XSlf4j 4 | public class XSlf4jTest { 5 | 6 | public void logSomething(){ 7 | LOGGER1.info("Hello World!"); 8 | } 9 | 10 | public static void main(String[] args) { 11 | LOGGER1.info("Test"); 12 | new XSlf4jTest().logSomething(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /testData/configsystem/log/fieldName/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.log.fieldName = LOGGER1 2 | 3 | config.stopBubbling = true -------------------------------------------------------------------------------- /testData/configsystem/tostring/callSuper/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.toString.callSuper = call 2 | 3 | config.stopBubbling = true 4 | -------------------------------------------------------------------------------- /testData/configsystem/tostring/configuration/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.ToString.includeFieldNames = false 2 | lombok.ToString.doNotUseGetters = true 3 | 4 | config.stopBubbling = true 5 | -------------------------------------------------------------------------------- /testData/configsystem/tostring/doNotUseGetters/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.toString.doNotUseGetters = true 2 | 3 | config.stopBubbling = true -------------------------------------------------------------------------------- /testData/configsystem/tostring/includeFieldNames/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.toString.includeFieldNames = false 2 | 3 | config.stopBubbling = true -------------------------------------------------------------------------------- /testData/configsystem/tostring/onlyExplicitlyIncluded/after/SomeTest.java: -------------------------------------------------------------------------------- 1 | public class SomeTest { 2 | 3 | int x; 4 | int y; 5 | String z; 6 | 7 | public String toString() { 8 | return "SomeTest(y=" + this.y + ")"; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /testData/configsystem/tostring/onlyExplicitlyIncluded/before/SomeTest.java: -------------------------------------------------------------------------------- 1 | import lombok.ToString; 2 | 3 | @ToString 4 | public class SomeTest { 5 | 6 | int x; 7 | 8 | @lombok.ToString.Include 9 | int y; 10 | 11 | String z; 12 | } 13 | -------------------------------------------------------------------------------- /testData/configsystem/tostring/onlyExplicitlyIncluded/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.toString.onlyExplicitlyIncluded = true 2 | 3 | config.stopBubbling = true 4 | -------------------------------------------------------------------------------- /testData/configsystem/value/extraPrivate/before/ValueTest.java: -------------------------------------------------------------------------------- 1 | @lombok.Value 2 | public class ValueTest { 3 | private int intProperty; 4 | private String stringProperty; 5 | } 6 | -------------------------------------------------------------------------------- /testData/configsystem/value/extraPrivate/before/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.noArgsConstructor.extraPrivate = true 2 | 3 | config.stopBubbling = true 4 | -------------------------------------------------------------------------------- /testData/extension/CheckedExeptionQuickFixExample.java: -------------------------------------------------------------------------------- 1 | package extension; 2 | 3 | import java.io.IOException; 4 | 5 | public class CheckedExeptionQuickFixExample { 6 | 7 | public int calcSomething() { 8 | throw new IOException(); 9 | } 10 | 11 | public static void main(String[] args) { 12 | System.out.println(new CheckedExeptionQuickFixExample().calcSomething()); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /testData/extension/CheckedMultipleExceptionQuickFixExample.java: -------------------------------------------------------------------------------- 1 | package extension; 2 | 3 | import java.io.IOException; 4 | 5 | public class CheckedMultipleExceptionQuickFixExample { 6 | 7 | public static void main(String[] args) { 8 | CheckedMultipleExceptionQuickFixExample.class.newInstance(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /testData/highlighting/extensionMethods/Array.java: -------------------------------------------------------------------------------- 1 | 2 | import lombok.experimental.ExtensionMethod; 3 | @ExtensionMethod({java.util.Arrays.class}) 4 | class ArrayExample { 5 | void m(int[] array) { 6 | array.sort(); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testData/highlighting/extensionMethods/ConflictingOwnMethod.java: -------------------------------------------------------------------------------- 1 | 2 | import lombok.experimental.ExtensionMethod; 3 | @ExtensionMethod({Ex.class}) 4 | class ConflictingOwnMethod { 5 | void m(Foo f) { 6 | f.or(f); 7 | } 8 | } 9 | 10 | class Foo { 11 | public void or(Foo foo) {} 12 | } 13 | 14 | class Ex { 15 | public static T or(T t1, T t2) { 16 | return t1; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /testData/highlights/staticConstructor/DataDto.java: -------------------------------------------------------------------------------- 1 | import lombok.Data; 2 | 3 | @Data(staticConstructor = "o3f") 4 | public class DataDto { 5 | private final int someInt; 6 | public static void main(String[] args) { 7 | DataDto.o3f(2); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /testData/highlights/staticConstructor/ValueDto.java: -------------------------------------------------------------------------------- 1 | import lombok.Value; 2 | 3 | @Value(staticConstructor = "o3f") 4 | public class ValueDto { 5 | private int someInt; 6 | public static void main(String[] args) { 7 | ValueDto.o3f(2); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /testData/inspection/canBeFinalInspection/ClassNormal.java: -------------------------------------------------------------------------------- 1 | public class ClassNormal { 2 | private int someFieldNormal; 3 | 4 | protected ClassNormal() { 5 | someFieldNormal = 123; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/inspection/canBeFinalInspection/ClassWithData.java: -------------------------------------------------------------------------------- 1 | @lombok.Data 2 | public class ClassWithData { 3 | private int someFieldData; 4 | 5 | protected ClassWithData() { 6 | someFieldData = 123; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testData/inspection/canBeFinalInspection/ClassWithGetter.java: -------------------------------------------------------------------------------- 1 | @lombok.Getter 2 | public class ClassWithGetter { 3 | private int someFieldGetter; 4 | 5 | protected ClassWithGetter() { 6 | someFieldGetter = 123; 7 | } 8 | } 9 | 10 | -------------------------------------------------------------------------------- /testData/inspection/canBeFinalInspection/ClassWithSetter.java: -------------------------------------------------------------------------------- 1 | @lombok.Setter 2 | public class ClassWithSetter { 3 | private int someFieldSetter; 4 | 5 | protected ClassWithSetter() { 6 | someFieldSetter = 123; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testData/inspection/canBeFinalInspection/ClassWithValue.java: -------------------------------------------------------------------------------- 1 | @lombok.Value 2 | public class ClassWithValue { 3 | private int someFieldValue; 4 | 5 | protected ClassWithValue() { 6 | someFieldValue = 123; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testData/inspection/canBeStaticInspection/Default.java: -------------------------------------------------------------------------------- 1 | import lombok.Builder; 2 | 3 | @Builder 4 | class Main { 5 | @Builder.Default 6 | private final int y = 3; 7 | 8 | void test() { 9 | System.out.println(y); 10 | } 11 | 12 | public void main(String[] args) { 13 | System.out.println(y); 14 | } 15 | } -------------------------------------------------------------------------------- /testData/inspection/defUse/UnusedInitializerBuilderDefault.java: -------------------------------------------------------------------------------- 1 | import lombok.*; 2 | import lombok.experimental.*; 3 | 4 | @Value 5 | @Builder 6 | class Test { 7 | @NonFinal 8 | @Builder.Default 9 | int field = 123; 10 | 11 | @NonFinal 12 | int field2 = 456; 13 | } 14 | -------------------------------------------------------------------------------- /testData/inspection/diverse/Issue37.java: -------------------------------------------------------------------------------- 1 | public class Issue37 { 2 | 3 | @lombok.EqualsAndHashCode 4 | class Car { 5 | 6 | } 7 | 8 | @lombok.EqualsAndHashCode(callSuper = true) 9 | class Ferrari extends Car { 10 | 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/inspection/diverse/NoArgsConstructorWithNotNullFieldsShouldBeNotForced.java: -------------------------------------------------------------------------------- 1 | import lombok.NoArgsConstructor; 2 | import lombok.NonNull; 3 | 4 | //No validation error:" Class contains required fields, you have to force NoArgsConstructor" 5 | @NoArgsConstructor 6 | public class NoArgsConstructorWithNotNullFieldsShouldBeNotForced { 7 | 8 | @NonNull 9 | private String myVariable; 10 | } -------------------------------------------------------------------------------- /testData/inspection/equalsAndHashCodeCallSuperConfigSkip/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.equalsAndHashCode.callSuper = skip 2 | config.stopBubbling = true 3 | -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/afterAllFields.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'Foo'" "true" 2 | 3 | import lombok.Getter; 4 | 5 | @Getter 6 | public class Foo { 7 | private int bar; 8 | private boolean baz; 9 | 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/afterAnnotatedField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'ClassWithAnnotatedField'" "true" 2 | 3 | import lombok.Getter; 4 | 5 | @Getter 6 | public class ClassWithAnnotatedField { 7 | private int canditateField; 8 | private int annotatedField; 9 | 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/afterBooleanField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'valid'" "true" 2 | 3 | import lombok.Getter; 4 | 5 | public class ClassWithBoolean { 6 | private int fieldWithoutGetter; 7 | @Getter 8 | private boolean valid; 9 | 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/afterEmptyStatement.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'field'" "true" 2 | 3 | import lombok.Getter; 4 | 5 | public class Foo { 6 | private int fieldWithoutGetter; 7 | /** 8 | * The field. 9 | * -- GETTER -- 10 | * Returns The field. 11 | * 12 | * @return The field 13 | 14 | */ 15 | @Getter 16 | private int field; 17 | 18 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/afterFieldInInnerClass.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'InnerClass'" "true" 2 | 3 | import lombok.Getter; 4 | 5 | public class Foo { 6 | @Getter 7 | public class InnerClass { 8 | // Keep this comment 9 | private int bar; 10 | 11 | } 12 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/afterFullyQualifiedAnnotation.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'candidateField'" "true" 2 | 3 | public class Getter { 4 | @lombok.Getter 5 | private int candidateField; 6 | private int fieldWithoutGetter; 7 | 8 | public int completelyIrrevelantMethod() { 9 | return 0; 10 | } 11 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/afterFullyQualifiedThis.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "true" 2 | 3 | package baz; 4 | 5 | import lombok.Getter; 6 | 7 | public class FullyQualifiedClass { 8 | @Getter 9 | private int bar; 10 | private int fieldWithoutGetter; 11 | 12 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/afterInstanceField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "true" 2 | 3 | import lombok.Getter; 4 | 5 | public class CommentedClass { 6 | /*1*/ 7 | /*2*/ 8 | /*3*/ 9 | /*4*/ 10 | /*5*/ 11 | /*6*/ 12 | /*7*/ 13 | /*8*/ 14 | @Getter 15 | private int bar; 16 | private int fieldWithoutGetter; 17 | 18 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/afterQualifiedThis.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "true" 2 | 3 | import lombok.Getter; 4 | 5 | public class QualifiedClass { 6 | //Keep this comment 7 | @Getter 8 | private int bar; 9 | private int fieldWithoutGetter; 10 | 11 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/afterStaticField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "true" 2 | 3 | import lombok.Getter; 4 | 5 | public class Foo { 6 | @Getter 7 | private static char bar; 8 | private int fieldWithoutGetter; 9 | 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/afterStaticFieldWithGetter.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'Foo'" "false" 2 | 3 | import lombok.Getter; 4 | 5 | public class Foo { 6 | @Getter 7 | private static char bar; 8 | 9 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/afterThisField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "true" 2 | 3 | import lombok.Getter; 4 | 5 | public class Foo { 6 | @Getter 7 | Long bar; 8 | private int fieldWithoutGetter; 9 | 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/afterUppercaseField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'Bar'" "true" 2 | 3 | import lombok.Getter; 4 | 5 | import java.util.Date; 6 | 7 | public class Foo { 8 | /** 9 | * -- GETTER -- 10 | * Returns The date. 11 | * 12 | * @return The date 13 | */ 14 | @Getter 15 | private Date Bar; 16 | private int fieldWithoutGetter; 17 | 18 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeAllFields.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'Foo'" "true" 2 | 3 | public class Foo { 4 | private int bar; 5 | private boolean baz; 6 | 7 | public int getBar() { 8 | return bar; 9 | } 10 | 11 | public boolean isBaz() { 12 | return baz; 13 | } 14 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeAnnotatedField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'ClassWithAnnotatedField'" "true" 2 | 3 | import lombok.Getter; 4 | 5 | public class ClassWithAnnotatedField { 6 | private int canditateField; 7 | @Getter 8 | private int annotatedField; 9 | 10 | public int getCanditateField() { 11 | return canditateField; 12 | } 13 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeAnnotedMethod.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutGetter; 6 | 7 | @Deprecated 8 | public int getBar() { 9 | return bar; 10 | } 11 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeAnotherField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int anotherField; 5 | private int fieldWithoutGetter; 6 | 7 | public int getBar() { 8 | return anotherField; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeBadField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutGetter; 6 | 7 | public int getBar() { 8 | return new Foo().bar; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeBooleanField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'valid'" "true" 2 | 3 | public class ClassWithBoolean { 4 | private int fieldWithoutGetter; 5 | private boolean valid; 6 | 7 | public boolean isValid() { 8 | return valid; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeDifferentType.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private char bar; 5 | private int fieldWithoutGetter; 6 | 7 | public int getBar() { 8 | return bar; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeEmptyStatement.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'field'" "true" 2 | 3 | public class Foo { 4 | private int fieldWithoutGetter; 5 | /** 6 | * The field. 7 | */ 8 | private int field; 9 | 10 | /** 11 | * Returns The field. 12 | * 13 | * @return The field 14 | */ 15 | public int getField() { 16 | return field;; 17 | } 18 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeFieldInInnerClass.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'InnerClass'" "true" 2 | 3 | public class Foo { 4 | public class InnerClass { 5 | private int bar; 6 | 7 | public int getBar() { 8 | return bar; // Keep this comment 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeFinalMethod.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutGetter; 6 | 7 | public final int getBar() { 8 | return bar; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeFullyQualifiedAnnotation.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'candidateField'" "true" 2 | 3 | public class Getter { 4 | private int candidateField; 5 | private int fieldWithoutGetter; 6 | 7 | public int getCandidateField() { 8 | return candidateField; 9 | } 10 | 11 | public int completelyIrrevelantMethod() { 12 | return 0; 13 | } 14 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeFullyQualifiedThis.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "true" 2 | 3 | package baz; 4 | 5 | public class FullyQualifiedClass { 6 | private int bar; 7 | private int fieldWithoutGetter; 8 | 9 | public int getBar() { 10 | return baz.FullyQualifiedClass.this.bar; 11 | } 12 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeInheritedField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | public class Foo extends MotherClass { 4 | 5 | public class MotherClass { 6 | private int bar; 7 | private int fieldWithoutGetter; 8 | } 9 | 10 | public int getBar() { 11 | return bar; 12 | } 13 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeInstanceField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "true" 2 | 3 | public class CommentedClass { 4 | private int bar; 5 | private int fieldWithoutGetter; 6 | 7 | /*1*/public /*2*/int /*3*/getBar() /*4*/{ 8 | /*5*/return /*6*/bar/*7*/; 9 | /*8*/} 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeMethodStartingWithDigit.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutGetter; 6 | 7 | public int get1Bar() { 8 | return bar; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeNoReturn.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutGetter; 6 | 7 | public void getBar() { 8 | } 9 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeNonPublicGetter.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutGetter; 6 | 7 | int getBar() { 8 | return bar; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeNonStaticMethod.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private static int bar; 5 | private int fieldWithoutGetter; 6 | 7 | public int getBar() { 8 | return bar; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeNotWritableLog.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'log'" "false" 2 | 3 | import lombok.extern.java.Log; 4 | import java.util.logging.Logger; 5 | 6 | @Log 7 | public class Foo { 8 | private int fieldWithoutGetter; 9 | public Logger getLog() { 10 | return log; 11 | } 12 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeOneMethodParameter.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutGetter; 6 | 7 | public int getBar(int dummy) { 8 | return bar; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeQualifiedThis.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "true" 2 | 3 | public class QualifiedClass { 4 | private int bar; 5 | private int fieldWithoutGetter; 6 | 7 | public int getBar() { 8 | //Keep this comment 9 | return QualifiedClass.this.bar; 10 | } 11 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeReturnLiteral.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutGetter; 6 | 7 | public int getBar() { 8 | return 0; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeSetterMethod.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutGetter; 6 | 7 | public int setBar() { 8 | return bar; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeShortMethodName.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutGetter; 6 | 7 | public int get() { 8 | return bar; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeStaticField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "true" 2 | 3 | public class Foo { 4 | private static char bar; 5 | private int fieldWithoutGetter; 6 | 7 | public static char getBar() { 8 | return bar; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeStaticFieldWithGetter.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'Foo'" "false" 2 | 3 | import lombok.Getter; 4 | 5 | public class Foo { 6 | @Getter 7 | private static char bar; 8 | 9 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeThisField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "true" 2 | 3 | public class Foo { 4 | Long bar; 5 | private int fieldWithoutGetter; 6 | 7 | public Long getBar() { 8 | return this.bar; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeThrowException.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | import javax.validation.constraints.NotNull; 4 | 5 | public class Foo { 6 | private Integer bar; 7 | private int fieldWithoutGetter; 8 | 9 | public @NotNull Integer getBar() { 10 | return bar; 11 | } 12 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeTwoStatements.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutGetter; 6 | 7 | public int getBar() { 8 | bar++; 9 | return bar; 10 | } 11 | } -------------------------------------------------------------------------------- /testData/inspection/lombokGetterMayBeUsed/beforeUppercaseField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Getter for 'Bar'" "true" 2 | 3 | import java.util.Date; 4 | 5 | public class Foo { 6 | private Date Bar; 7 | private int fieldWithoutGetter; 8 | 9 | /** 10 | * Returns The date. 11 | * 12 | * @return The date 13 | */ 14 | 15 | public Date getBar() { 16 | return Bar; 17 | } 18 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/afterAllFields.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'Foo'" "true" 2 | 3 | import lombok.Setter; 4 | 5 | @Setter 6 | public class Foo { 7 | private int bar; 8 | private boolean baz; 9 | 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/afterAnnotatedField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'ClassWithAnnotatedField'" "true" 2 | 3 | import lombok.Setter; 4 | 5 | @Setter 6 | public class ClassWithAnnotatedField { 7 | private int canditateField; 8 | private int annotatedField; 9 | 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/afterBooleanField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'valid'" "true" 2 | 3 | import lombok.Setter; 4 | 5 | public class ClassWithBoolean { 6 | private int fieldWithoutSetter; 7 | @Setter 8 | private boolean valid; 9 | 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/afterEmptyStatement.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'Foo'" "true" 2 | 3 | import lombok.Setter; 4 | 5 | @Setter 6 | public class Foo { 7 | Long bar; 8 | 9 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/afterFieldInInnerClass.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'InnerClass'" "true" 2 | 3 | import lombok.Setter; 4 | 5 | public class Foo { 6 | @Setter 7 | public class InnerClass { 8 | // Keep this comment 9 | private int bar; 10 | 11 | } 12 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/afterFinalParameter.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "true" 2 | 3 | import lombok.Setter; 4 | 5 | public class Foo { 6 | @Setter 7 | Long bar; 8 | private int fieldWithoutSetter; 9 | 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/afterFullyQualifiedAnnotation.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'candidateField'" "true" 2 | 3 | public class Setter { 4 | @lombok.Setter 5 | private int candidateField; 6 | private int fieldWithoutSetter; 7 | 8 | public int completelyIrrevelantMethod() { 9 | return 0; 10 | } 11 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/afterFullyQualifiedThis.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "true" 2 | 3 | package project; 4 | 5 | import lombok.Setter; 6 | 7 | public class OneFullyQualifiedClass { 8 | @Setter 9 | private int bar; 10 | private int fieldWithoutSetter; 11 | 12 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/afterInstanceField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "true" 2 | 3 | import lombok.Setter; 4 | 5 | public class CommentedClass { 6 | /*1*/ 7 | /*2*/ 8 | /*3*/ 9 | /*4*/ 10 | /*5*/ 11 | /*6*/ 12 | /*7*/ 13 | /*8*/ 14 | @Setter 15 | private int bar; 16 | private int fieldWithoutSetter; 17 | 18 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/afterParentherizedParameter.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "true" 2 | 3 | import lombok.Setter; 4 | 5 | public class Foo { 6 | @Setter 7 | Long bar; 8 | private int fieldWithoutSetter; 9 | 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/afterQualifiedThis.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "true" 2 | 3 | import lombok.Setter; 4 | 5 | public class QualifiedClass { 6 | //Keep this comment 7 | @Setter 8 | private int bar; 9 | private int fieldWithoutSetter; 10 | 11 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/afterStaticField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "true" 2 | 3 | import lombok.Setter; 4 | 5 | public class Foo { 6 | @Setter 7 | private static char bar; 8 | private int fieldWithoutSetter; 9 | 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/afterStaticFieldWithSetter.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'Foo'" "false" 2 | 3 | import lombok.Setter; 4 | 5 | public class Foo { 6 | @Setter 7 | private static char bar; 8 | 9 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/afterThisField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "true" 2 | 3 | import lombok.Setter; 4 | 5 | public class Foo { 6 | @Setter 7 | Long bar; 8 | private int fieldWithoutSetter; 9 | 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/afterUppercaseField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'Bar'" "true" 2 | 3 | import lombok.Setter; 4 | 5 | import java.util.Date; 6 | 7 | public class Foo { 8 | /** 9 | * -- SETTER -- 10 | * Sets The date. 11 | * 12 | * @param The date 13 | */ 14 | @Setter 15 | private Date Bar; 16 | private int fieldWithoutSetter; 17 | 18 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeAllFields.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'Foo'" "true" 2 | 3 | public class Foo { 4 | private int bar; 5 | private boolean baz; 6 | 7 | public void setBar(int param) { 8 | bar = param; 9 | } 10 | 11 | public void setBaz(boolean param) { 12 | baz = param; 13 | } 14 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeAnnotatedField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'ClassWithAnnotatedField'" "true" 2 | 3 | import lombok.Setter; 4 | 5 | public class ClassWithAnnotatedField { 6 | private int canditateField; 7 | @Setter 8 | private int annotatedField; 9 | 10 | public void setCanditateField(int param) { 11 | canditateField = param; 12 | } 13 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeAnnotedMethod.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutSetter; 6 | 7 | @Deprecated 8 | public void setBar(int param) { 9 | bar = param; 10 | } 11 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeAnnoyingQualifier.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | Long bar; 5 | 6 | public void setBar(Long bar) { 7 | this.bar = this.bar; 8 | } 9 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeAnotherField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int anotherField; 5 | private int fieldWithoutSetter; 6 | 7 | public void setBar(int param) { 8 | anotherField = param; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeAssignment.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutSetter; 6 | 7 | public void setBar(int param) { 8 | } 9 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeBadField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutSetter; 6 | 7 | public void setBar(int param) { 8 | new Foo().bar = param; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeBadOperator.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'Foo'" "false" 2 | 3 | public class Foo { 4 | private int count; 5 | 6 | public void setCount(int increment) { 7 | count += increment; 8 | } 9 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeBooleanField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'valid'" "true" 2 | 3 | public class ClassWithBoolean { 4 | private int fieldWithoutSetter; 5 | private boolean valid; 6 | 7 | public void setValid(boolean param) { 8 | valid = param; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeDifferentType.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private char bar; 5 | private int fieldWithoutSetter; 6 | 7 | public void setBar(int param) { 8 | bar = param; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeEmptyStatement.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'Foo'" "true" 2 | 3 | public class Foo { 4 | Long bar; 5 | 6 | public void setBar(Long param) { 7 | this.bar = param;; 8 | } 9 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeFieldInInnerClass.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'InnerClass'" "true" 2 | 3 | public class Foo { 4 | public class InnerClass { 5 | private int bar; 6 | 7 | public void setBar(int param) { 8 | bar = param; // Keep this comment 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeFinalMethod.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutSetter; 6 | 7 | public final void setBar(int param) { 8 | bar = param; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeFinalParameter.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "true" 2 | 3 | public class Foo { 4 | Long bar; 5 | private int fieldWithoutSetter; 6 | 7 | public void setBar(final Long param) { 8 | this.bar = param; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeFullyQualifiedThis.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "true" 2 | 3 | package project; 4 | 5 | public class OneFullyQualifiedClass { 6 | private int bar; 7 | private int fieldWithoutSetter; 8 | 9 | public void setBar(int param) { 10 | project.OneFullyQualifiedClass.this.bar = param; 11 | } 12 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeGetterMethod.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutSetter; 6 | 7 | public int getBar() { 8 | return bar; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeIgnoredParameter.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | 6 | public void setBar(int param) { 7 | bar = bar; 8 | } 9 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeInheritedField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo extends MotherClass { 4 | 5 | public class MotherClass { 6 | private int bar; 7 | private int fieldWithoutSetter; 8 | } 9 | 10 | public void setBar(int param) { 11 | bar = param; 12 | } 13 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeInstanceField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "true" 2 | 3 | public class CommentedClass { 4 | private int bar; 5 | private int fieldWithoutSetter; 6 | 7 | /*1*/public /*2*/void /*3*/setBar(int param) /*4*/{ 8 | /*5*/bar/*6*/ = /*7*/param; 9 | /*8*/} 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeMethodStartingWithDigit.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutSetter; 6 | 7 | public void set1Bar(int param) { 8 | bar = param; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeNoFieldSet.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | Long bar; 5 | 6 | public void setBar(Long bar) { 7 | bar = bar; 8 | } 9 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeNonPublicGetter.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutSetter; 6 | 7 | void setBar(int param) { 8 | bar = param; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeNonStaticMethod.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private static int bar; 5 | private int fieldWithoutSetter; 6 | 7 | public void setBar(int param) { 8 | bar = param; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeNotWritableLog.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'log'" "false" 2 | 3 | import lombok.extern.java.Log; 4 | import java.util.logging.Logger; 5 | 6 | @Log 7 | public class Foo { 8 | private int fieldWithoutSetter; 9 | public void setLog(Logger param) { 10 | log = param; 11 | } 12 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeParentherizedParameter.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "true" 2 | 3 | public class Foo { 4 | Long bar; 5 | private int fieldWithoutSetter; 6 | 7 | public void setBar(Long param) { 8 | this.bar = (param); 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeQualifiedThis.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "true" 2 | 3 | public class QualifiedClass { 4 | private int bar; 5 | private int fieldWithoutSetter; 6 | 7 | public void setBar(int param) { 8 | //Keep this comment 9 | QualifiedClass.this.bar = param; 10 | } 11 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeSetLiteral.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutSetter; 6 | 7 | public void setBar(int param) { 8 | bar = 0; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeShortMethodName.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutSetter; 6 | 7 | public void set(int param) { 8 | bar = param; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeStaticField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "true" 2 | 3 | public class Foo { 4 | private static char bar; 5 | private int fieldWithoutSetter; 6 | 7 | public static void setBar(char param) { 8 | bar = param; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeStaticFieldWithSetter.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'Foo'" "false" 2 | 3 | import lombok.Setter; 4 | 5 | public class Foo { 6 | @Setter 7 | private static char bar; 8 | 9 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeThisField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "true" 2 | 3 | public class Foo { 4 | Long bar; 5 | private int fieldWithoutSetter; 6 | 7 | public void setBar(Long param) { 8 | this.bar = param; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeThrowException.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | import javax.validation.constraints.NotNull; 4 | 5 | public class Foo { 6 | private Integer bar; 7 | private int fieldWithoutSetter; 8 | 9 | public void setBar(@NotNull Integer param) { 10 | bar = param; 11 | } 12 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeTwoParameterMethod.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutSetter; 6 | 7 | public void setBar(int param, int dummy) { 8 | bar = param; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeTwoStatements.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutSetter; 6 | 7 | public void setBar(int param) { 8 | bar++; 9 | bar = param; 10 | } 11 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeUppercaseField.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'Bar'" "true" 2 | 3 | import java.util.Date; 4 | 5 | public class Foo { 6 | private Date Bar; 7 | private int fieldWithoutSetter; 8 | 9 | /** 10 | * Sets The date. 11 | * 12 | * @param The date 13 | */ 14 | 15 | public void setBar(Date param) { 16 | Bar = param; 17 | } 18 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeVarArgParameter.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | Object bar; 5 | 6 | public void setBar(Object param...) { 7 | this.bar = param; 8 | } 9 | } -------------------------------------------------------------------------------- /testData/inspection/lombokSetterMayBeUsed/beforeZeroParameterMethod.java: -------------------------------------------------------------------------------- 1 | // "Use lombok @Setter for 'bar'" "false" 2 | 3 | public class Foo { 4 | private int bar; 5 | private int fieldWithoutSetter; 6 | 7 | public void setBar() { 8 | bar = bar; 9 | } 10 | } -------------------------------------------------------------------------------- /testData/inspection/onXAnnotation/ConstructorOnConstructor.java: -------------------------------------------------------------------------------- 1 | 2 | @lombok.AllArgsConstructor(onConstructor = @__(@Deprecated)) 3 | @lombok.RequiredArgsConstructor(onConstructor_ = @Deprecated) 4 | public class ConstructorOnConstructor { 5 | 6 | private int intField; 7 | private final int intField2; 8 | } 9 | -------------------------------------------------------------------------------- /testData/inspection/redundantModifierInspection/UtilityClassClassWithStaticField.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.UtilityClass 2 | public class UtilityClassClassWithStaticField { 3 | static String testField; 4 | } 5 | -------------------------------------------------------------------------------- /testData/inspection/redundantModifierInspection/UtilityClassClassWithStaticInnerClass.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.UtilityClass 2 | public class UtilityClassClassWithStaticInnerClass { 3 | static class TestInnerClass {} 4 | } 5 | -------------------------------------------------------------------------------- /testData/inspection/redundantModifierInspection/UtilityClassClassWithStaticMethod.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.UtilityClass 2 | public class UtilityClassClassWithStaticMethod { 3 | static void testMethod() {} 4 | } 5 | -------------------------------------------------------------------------------- /testData/inspection/redundantModifierInspection/ValClass.java: -------------------------------------------------------------------------------- 1 | import lombok.val; 2 | public class ValClass { 3 | public void test() { 4 | final val FIVE = 5; 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /testData/inspection/redundantModifierInspection/ValueClassWithFinalField.java: -------------------------------------------------------------------------------- 1 | @lombok.Value 2 | public class ValueClass { 3 | final String field1; 4 | } 5 | -------------------------------------------------------------------------------- /testData/inspection/redundantModifierInspection/ValueClassWithPrivateField.java: -------------------------------------------------------------------------------- 1 | @lombok.Value 2 | public class ValueClass { 3 | private String field1; 4 | } 5 | -------------------------------------------------------------------------------- /testData/inspection/superbuilder/BuilderInvalidInnerBuilderClass.java: -------------------------------------------------------------------------------- 1 | @lombok.experimental.SuperBuilder 2 | class BuilderInvalidUse { 3 | private int something; 4 | 5 | public class BuilderInvalidUseBuilder { 6 | 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/NotReplaceAbstractGetterFromField.java: -------------------------------------------------------------------------------- 1 | public abstract class NotReplaceAbstractGetterFromField { 2 | private int field; 3 | 4 | public abstract int getField(); 5 | } 6 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/NotReplaceAbstractSetterFromField.java: -------------------------------------------------------------------------------- 1 | public abstract class NotReplaceAbstractSetterFromField { 2 | private int field; 3 | 4 | public abstract void setField(int field); 5 | } 6 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/NotReplaceIncorrectAccessors.java: -------------------------------------------------------------------------------- 1 | public class ReplaceGetterFromField { 2 | private int field; 3 | 4 | public int getField() { 5 | System.out.println("some stub"); 6 | return 0; 7 | } 8 | 9 | public void setField(int field) { 10 | System.out.println("Additional monitoring"); 11 | this.field = field; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/NotReplaceSetterWithAdditionalCode.java: -------------------------------------------------------------------------------- 1 | public abstract class NotReplaceSetterWithAdditionalCode { 2 | private int field; 3 | 4 | public void setField(int field) { 5 | this.field = field + 1; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/NotReplaceSetterWithWrongParamFromField.java: -------------------------------------------------------------------------------- 1 | public abstract class NotReplaceSetterWithWrongParamFromField { 2 | private int field; 3 | 4 | public void setField(long field) { 5 | this.field = (int) field; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/ReplaceAccessorsFromField.java: -------------------------------------------------------------------------------- 1 | public class ReplaceAccessorsFromField { 2 | private int field; 3 | 4 | public int getField() { 5 | return field; 6 | } 7 | 8 | public void setField(int field) { 9 | this.field = field; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/ReplaceGetterFromField.java: -------------------------------------------------------------------------------- 1 | public class ReplaceGetterFromField { 2 | private int field; 3 | 4 | public int getField() { 5 | return field; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/ReplaceGetterFromFieldNotCompleteMethod.java: -------------------------------------------------------------------------------- 1 | public class ReplaceGetterFromFieldNotCompleteMethod { 2 | private int field; 3 | 4 | public int getField() 5 | } 6 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/ReplaceGetterFromMethod.java: -------------------------------------------------------------------------------- 1 | public class ReplaceGetterFromMethod { 2 | private int field; 3 | 4 | public int getField() { 5 | return (field); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/ReplaceGetterFromMethod2.java: -------------------------------------------------------------------------------- 1 | public class ReplaceGetterFromMethod2 { 2 | private int field; 3 | 4 | public int getField() { 5 | return field; 6 | } 7 | 8 | public void setField(int field) { 9 | this.field = field; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/ReplaceGetterFromProtectedMethod.java: -------------------------------------------------------------------------------- 1 | public class ReplaceGetterFromProtectedMethod { 2 | private int field; 3 | 4 | protected int getField() { 5 | return (field); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/ReplacePackageProtectedAccessorsFromField.java: -------------------------------------------------------------------------------- 1 | public class ReplacePackageProtectedAccessorsFromField { 2 | private int field; 3 | 4 | int getField() { 5 | return field; 6 | } 7 | 8 | void setField(int field) { 9 | this.field = field; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/ReplacePrivateAccessorsFromField.java: -------------------------------------------------------------------------------- 1 | public class ReplacePrivateAccessorsFromField { 2 | private int field; 3 | 4 | private int getField() { 5 | return field; 6 | } 7 | 8 | private void setField(int field) { 9 | this.field = field; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/ReplaceProtectedAccessorsFromField.java: -------------------------------------------------------------------------------- 1 | public class ReplaceProtectedAccessorsFromField { 2 | private int field; 3 | 4 | protected int getField() { 5 | return field; 6 | } 7 | 8 | protected void setField(int field) { 9 | this.field = field; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/ReplaceSetterFromField.java: -------------------------------------------------------------------------------- 1 | public class ReplaceSetterFromField { 2 | private int field; 3 | 4 | public void setField(int field) { 5 | this.field = field; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/ReplaceSetterFromFieldNotCompleteMethod.java: -------------------------------------------------------------------------------- 1 | public class ReplaceSetterFromFieldNotCompleteMethod { 2 | private int field; 3 | 4 | public void setField(int field) 5 | } 6 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/ReplaceSetterFromMethod.java: -------------------------------------------------------------------------------- 1 | public class ReplaceSetterFromMethod { 2 | private int field; 3 | 4 | public void setField(int field) { 5 | this.field = field; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/ReplaceSetterFromMethod2.java: -------------------------------------------------------------------------------- 1 | public class ReplaceSetterFromMethod2 { 2 | private int field; 3 | 4 | public int getField() { 5 | return field; 6 | } 7 | 8 | public void setField(int field) { 9 | this.field = field; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /testData/intention/replaceLombok/ReplaceSetterFromProtectedMethod.java: -------------------------------------------------------------------------------- 1 | public class ReplaceSetterFromProtectedMethod { 2 | private int field; 3 | 4 | protected void setField(int field) { 5 | this.field = field; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/intention/synchronized/JavaSynchronizedMethod.java: -------------------------------------------------------------------------------- 1 | public class JavaSynchronizedMethod { 2 | public synchronized void doSomething() { 3 | System.out.println("doSomething"); 4 | } 5 | } -------------------------------------------------------------------------------- /testData/intention/synchronized/JavaSynchronizedStaticMethod.java: -------------------------------------------------------------------------------- 1 | public class JavaSynchronizedStaticMethod { 2 | public synchronized static void doSomethingStatic() { 3 | System.out.println("doSomethingStatic"); 4 | } 5 | } -------------------------------------------------------------------------------- /testData/intention/valvar/replaceExplicitType/FinalTypeWithVal.java: -------------------------------------------------------------------------------- 1 | public class FinalTypeWithVal { 2 | public void testMethod() { 3 | final String testVariable = ""; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /testData/intention/valvar/replaceExplicitType/TypeWithVar.java: -------------------------------------------------------------------------------- 1 | public class TypeWithVar { 2 | public void testMethod() { 3 | String testVariable = ""; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /testData/intention/valvar/replaceExplicitType/ValAndVar.java: -------------------------------------------------------------------------------- 1 | public class ValAndVar { 2 | public void testMethod() { 3 | String testVariable = ""; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /testData/intention/valvar/replaceValVar/ReplaceVal.java: -------------------------------------------------------------------------------- 1 | import lombok.val; 2 | 3 | public class TestReplaceVal { 4 | public void testReplaceVal() { 5 | val test = ""; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/intention/valvar/replaceValVar/ReplaceValWithGenerics.java: -------------------------------------------------------------------------------- 1 | import lombok.val; 2 | 3 | public class ReplaceValWithGenerics { 4 | public void testMethod() { 5 | val list = new ArrayList(); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/intention/valvar/replaceValVar/ReplaceVar.java: -------------------------------------------------------------------------------- 1 | import lombok.var; 2 | 3 | public class ReplaceVar { 4 | public void testReplaceVar() { 5 | var test = ""; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/intentions/afterChangeSignature.java: -------------------------------------------------------------------------------- 1 | // "Add 'String' as 1st parameter to method 'getFoo'" "true" 2 | @lombok.Getter 3 | class A { 4 | String foo; 5 | { 6 | getFoo(""); 7 | } 8 | } -------------------------------------------------------------------------------- /testData/intentions/beforeChangeSignature.java: -------------------------------------------------------------------------------- 1 | // "Add 'String' as 1st parameter to method 'getFoo'" "true" 2 | @lombok.Getter 3 | class A { 4 | String foo; 5 | { 6 | getFoo(""); 7 | } 8 | } -------------------------------------------------------------------------------- /testData/performance/fieldDefaults/lombok.config: -------------------------------------------------------------------------------- 1 | lombok.fieldDefaults.defaultPrivate = true 2 | lombok.fieldDefaults.defaultFinal = true 3 | 4 | config.stopBubbling = true 5 | -------------------------------------------------------------------------------- /testData/postfix/val/simpleVal.java: -------------------------------------------------------------------------------- 1 | public class Foo { 2 | void m(Object o) { 3 | String.valueOf(123).val 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /testData/postfix/val/simpleVal_after.java: -------------------------------------------------------------------------------- 1 | import lombok.val; 2 | 3 | public class Foo { 4 | void m(Object o) { 5 | val foo = String.valueOf(123); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/postfix/varl/simpleVarl.java: -------------------------------------------------------------------------------- 1 | public class Foo { 2 | void m(Object o) { 3 | String.valueOf(123).varl 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /testData/postfix/varl/simpleVarl_after.java: -------------------------------------------------------------------------------- 1 | import lombok.var; 2 | 3 | public class Foo { 4 | void m(Object o) { 5 | var foo = String.valueOf(123); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testData/usage/FieldUsages.java: -------------------------------------------------------------------------------- 1 | import lombok.extern.slf4j.Slf4j; 2 | 3 | @Slf4j 4 | class Apple { 5 | } 6 | 7 | @Slf4j 8 | class CherryTree { 9 | public CherryTree() { 10 | log.info("A cherry tree!"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /testData/usage/FindUsageDelegateMethod.java: -------------------------------------------------------------------------------- 1 | import lombok.experimental.Delegate; 2 | 3 | public class FindUsageDelegateMethod { 4 | @Delegate 5 | private ClassB classB; 6 | } 7 | 8 | class ClassB { 9 | public void foo() { 10 | } 11 | } 12 | 13 | class ClassC { 14 | private FindUsageDelegateMethod classA; 15 | 16 | public void bar() { 17 | classA.foo(); 18 | } 19 | } --------------------------------------------------------------------------------