[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:
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.core.privatemodifier;
|
||||
package com.baeldung.privatemodifier;
|
||||
|
||||
public class Employee {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.core.privatemodifier;
|
||||
package com.baeldung.privatemodifier;
|
||||
|
||||
public class ExampleClass {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.core.privatemodifier;
|
||||
package com.baeldung.privatemodifier;
|
||||
|
||||
public class PublicOuterClass {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.accessmodifiers.publicmodifier;
|
||||
package com.baeldung.publicmodifier;
|
||||
|
||||
import java.util.AbstractList;
|
||||
import java.util.Arrays;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.accessmodifiers.publicmodifier;
|
||||
package com.baeldung.publicmodifier;
|
||||
|
||||
public class SpecialCharacters {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.accessmodifiers.publicmodifier;
|
||||
package com.baeldung.publicmodifier;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Connection;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.staticdemo;
|
||||
package com.baeldung.staticmodifier;
|
||||
|
||||
/**
|
||||
* This class demonstrates the use of static fields and static methods
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.staticdemo;
|
||||
package com.baeldung.staticmodifier;
|
||||
|
||||
public class Singleton {
|
||||
private Singleton() {}
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.staticdemo;
|
||||
package com.baeldung.staticmodifier;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.defaultstaticinterfacemethods.test;
|
||||
package com.baeldung.defaultstaticinterfacemethods;
|
||||
|
||||
import com.baeldung.defaultstaticinterfacemethods.model.Car;
|
||||
import com.baeldung.defaultstaticinterfacemethods.model.Motorbike;
|
||||
@@ -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.TestInstance;
|
||||
import org.junit.jupiter.api.TestInstance.Lifecycle;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.staticdemo;
|
||||
package com.baeldung.staticmodifier;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.staticdemo;
|
||||
package com.baeldung.staticmodifier;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.staticdemo;
|
||||
package com.baeldung.staticmodifier;
|
||||
|
||||
import static org.hamcrest.collection.IsIterableContainingInOrder.contains;
|
||||
import static org.junit.Assert.assertThat;
|
||||
Reference in New Issue
Block a user