[JAVA-621] Ensuring each article has its own package

* Putting test classes directly under abstractclasses package (no need
for test subpackage, we're already in test sources)

* Removed unnecessary keyword package to just let superkeyword

* Renamed scope package to variableandmethodhiding

* Renamed package basicmethods into methods

* Putting test classes directly under methodoverloadingoverriding package (no need for test subpackage, we're already in test sources)

* Moved publicmodifier package under com.baeldung as it contains code from a separate article

* Moved privatemodifier under com.baeldung as it was under an unnecessary core package

* Renamed staticdemo package into staticmodifier (was more adequate with other modifiers articles)

* Putting test classes directly under defaultstaticinterfacemethods package (no need for test subpackage, we're already in test sources)

* Moved thiskeyword package to com.baeldung instead of under keywords package
This commit is contained in:
dupirefr 2020-04-21 08:52:04 +02:00
parent c02e57fe7e
commit 4f75f2d5b0
30 changed files with 30 additions and 32 deletions

View File

@ -1,4 +1,4 @@
package com.baeldung.keyword.superkeyword; package com.baeldung.superkeyword;
/** /**
* Created by Gebruiker on 5/14/2018. * Created by Gebruiker on 5/14/2018.

View File

@ -1,4 +1,4 @@
package com.baeldung.keyword.superkeyword; package com.baeldung.superkeyword;
/** /**
* Created by Gebruiker on 5/14/2018. * Created by Gebruiker on 5/14/2018.

View File

@ -1,4 +1,4 @@
package com.baeldung.keyword.superkeyword; package com.baeldung.superkeyword;
/** /**
* Created by Gebruiker on 5/15/2018. * Created by Gebruiker on 5/15/2018.

View File

@ -1,4 +1,4 @@
package com.baeldung.scope.method; package com.baeldung.variableandmethodhiding.method;
public class BaseMethodClass { public class BaseMethodClass {

View File

@ -1,4 +1,4 @@
package com.baeldung.scope.method; package com.baeldung.variableandmethodhiding.method;
public class ChildMethodClass extends BaseMethodClass { public class ChildMethodClass extends BaseMethodClass {

View File

@ -1,4 +1,4 @@
package com.baeldung.scope.method; package com.baeldung.variableandmethodhiding.method;
public class MethodHidingDemo { public class MethodHidingDemo {

View File

@ -1,4 +1,4 @@
package com.baeldung.scope.variable; package com.baeldung.variableandmethodhiding.variable;
/** /**
* Created by Gebruiker on 5/7/2018. * Created by Gebruiker on 5/7/2018.

View File

@ -1,4 +1,4 @@
package com.baeldung.scope.variable; package com.baeldung.variableandmethodhiding.variable;
/** /**
* Created by Gebruiker on 5/6/2018. * Created by Gebruiker on 5/6/2018.

View File

@ -1,4 +1,4 @@
package com.baeldung.scope.variable; package com.baeldung.variableandmethodhiding.variable;
/** /**
* Created by Gebruiker on 5/7/2018. * Created by Gebruiker on 5/7/2018.

View File

@ -1,4 +1,4 @@
package com.baeldung.scope.variable; package com.baeldung.variableandmethodhiding.variable;
/** /**
* Created by Gebruiker on 5/6/2018. * Created by Gebruiker on 5/6/2018.

View File

@ -1,4 +1,4 @@
package com.baeldung.abstractclasses.test; package com.baeldung.abstractclasses;
import com.baeldung.abstractclasses.filereaders.BaseFileReader; import com.baeldung.abstractclasses.filereaders.BaseFileReader;
import com.baeldung.abstractclasses.filereaders.LowercaseFileReader; import com.baeldung.abstractclasses.filereaders.LowercaseFileReader;

View File

@ -1,4 +1,4 @@
package com.baeldung.abstractclasses.test; package com.baeldung.abstractclasses;
import com.baeldung.abstractclasses.filereaders.BaseFileReader; import com.baeldung.abstractclasses.filereaders.BaseFileReader;
import com.baeldung.abstractclasses.filereaders.UppercaseFileReader; import com.baeldung.abstractclasses.filereaders.UppercaseFileReader;

View File

@ -1,4 +1,4 @@
package com.baeldung.basicmethods; package com.baeldung.methods;
import java.io.FileWriter; import java.io.FileWriter;
import java.io.IOException; import java.io.IOException;

View File

@ -1,4 +1,4 @@
package com.baeldung.methodoverloadingoverriding.test; package com.baeldung.methodoverloadingoverriding;
import com.baeldung.methodoverloadingoverriding.util.Multiplier; import com.baeldung.methodoverloadingoverriding.util.Multiplier;
import org.junit.BeforeClass; import org.junit.BeforeClass;

View File

@ -1,4 +1,4 @@
package com.baeldung.methodoverloadingoverriding.test; package com.baeldung.methodoverloadingoverriding;
import com.baeldung.methodoverloadingoverriding.model.Car; import com.baeldung.methodoverloadingoverriding.model.Car;
import com.baeldung.methodoverloadingoverriding.model.Vehicle; import com.baeldung.methodoverloadingoverriding.model.Vehicle;

View File

@ -1,4 +1,4 @@
package com.baeldung.core.privatemodifier; package com.baeldung.privatemodifier;
public class Employee { public class Employee {

View File

@ -1,4 +1,4 @@
package com.baeldung.core.privatemodifier; package com.baeldung.privatemodifier;
public class ExampleClass { public class ExampleClass {

View File

@ -1,4 +1,4 @@
package com.baeldung.core.privatemodifier; package com.baeldung.privatemodifier;
public class PublicOuterClass { public class PublicOuterClass {

View File

@ -1,4 +1,4 @@
package com.baeldung.accessmodifiers.publicmodifier; package com.baeldung.publicmodifier;
import java.util.AbstractList; import java.util.AbstractList;
import java.util.Arrays; import java.util.Arrays;

View File

@ -1,4 +1,4 @@
package com.baeldung.accessmodifiers.publicmodifier; package com.baeldung.publicmodifier;
public class SpecialCharacters { public class SpecialCharacters {

View File

@ -1,4 +1,4 @@
package com.baeldung.accessmodifiers.publicmodifier; package com.baeldung.publicmodifier;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.sql.Connection; import java.sql.Connection;

View File

@ -1,4 +1,4 @@
package com.baeldung.staticdemo; package com.baeldung.staticmodifier;
/** /**
* This class demonstrates the use of static fields and static methods * This class demonstrates the use of static fields and static methods

View File

@ -1,4 +1,4 @@
package com.baeldung.staticdemo; package com.baeldung.staticmodifier;
public class Singleton { public class Singleton {
private Singleton() {} private Singleton() {}

View File

@ -1,4 +1,4 @@
package com.baeldung.staticdemo; package com.baeldung.staticmodifier;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.defaultstaticinterfacemethods.test; package com.baeldung.defaultstaticinterfacemethods;
import com.baeldung.defaultstaticinterfacemethods.model.Car; import com.baeldung.defaultstaticinterfacemethods.model.Car;
import com.baeldung.defaultstaticinterfacemethods.model.Motorbike; import com.baeldung.defaultstaticinterfacemethods.model.Motorbike;

View File

@ -1,7 +1,5 @@
package com.baeldung.accessmodifiers.publicmodifier; package com.baeldung.publicmodifier;
import com.baeldung.accessmodifiers.publicmodifier.ListOfThree;
import com.baeldung.accessmodifiers.publicmodifier.Student;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance; import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.TestInstance.Lifecycle; import org.junit.jupiter.api.TestInstance.Lifecycle;

View File

@ -1,4 +1,4 @@
package com.baeldung.staticdemo; package com.baeldung.staticmodifier;
import static org.junit.Assert.*; import static org.junit.Assert.*;

View File

@ -1,4 +1,4 @@
package com.baeldung.staticdemo; package com.baeldung.staticmodifier;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package com.baeldung.staticdemo; package com.baeldung.staticmodifier;
import static org.hamcrest.collection.IsIterableContainingInOrder.contains; import static org.hamcrest.collection.IsIterableContainingInOrder.contains;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;

View File

@ -1,4 +1,4 @@
package com.baeldung.keyword.thiskeyword; package com.baeldung.thiskeyword;
public class Keyword { public class Keyword {