Merge pull request #8432 from kwoyke/BAEL-20537

BAEL-20537: Standardize packages for some smaller modules
This commit is contained in:
Josh Cummings 2019-12-26 23:33:44 -07:00 committed by GitHub
commit b63a8c2335
28 changed files with 36 additions and 43 deletions

View File

@ -16,7 +16,7 @@
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>org.baeldung.config</param-value>
<param-value>com.baeldung.config</param-value>
</context-param>
<listener>

View File

@ -1,4 +1,4 @@
package org.baeldung.java;
package com.baeldung.java;
import java.io.BufferedOutputStream;
import java.io.File;

View File

@ -1,4 +1,4 @@
package org.baeldung.java;
package com.baeldung.java;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.baeldung.examples.olingo2</groupId>
<groupId>com.baeldung.examples.olingo2</groupId>
<artifactId>olingo2</artifactId>
<name>olingo2</name>
<description>Sample Olingo 2 Project</description>

View File

@ -1,4 +1,4 @@
package org.baeldung.examples.olingo2;
package com.baeldung.examples.olingo2;
import java.util.List;
import java.util.Map;
@ -9,10 +9,8 @@ import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.FlushModeType;
import javax.persistence.LockModeType;
import javax.persistence.Persistence;
import javax.persistence.Query;
import javax.persistence.StoredProcedureQuery;
import javax.persistence.SynchronizationType;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaDelete;
@ -25,11 +23,8 @@ import org.apache.olingo.odata2.api.processor.ODataContext;
import org.apache.olingo.odata2.jpa.processor.api.ODataJPAContext;
import org.apache.olingo.odata2.jpa.processor.api.ODataJPAServiceFactory;
import org.apache.olingo.odata2.jpa.processor.api.exception.ODataJPARuntimeException;
import org.baeldung.examples.olingo2.JerseyConfig.EntityManagerFilter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.orm.jpa.EntityManagerFactoryUtils;
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
import org.springframework.stereotype.Component;
/**
@ -58,7 +53,7 @@ public class CarsODataJPAServiceFactory extends ODataJPAServiceFactory {
ODataJPAContext ctx = getODataJPAContext();
ODataContext octx = ctx.getODataContext();
HttpServletRequest request = (HttpServletRequest)octx.getParameter(ODataContext.HTTP_SERVLET_REQUEST_OBJECT);
EntityManager em = (EntityManager)request.getAttribute(EntityManagerFilter.EM_REQUEST_ATTRIBUTE);
EntityManager em = (EntityManager)request.getAttribute(JerseyConfig.EntityManagerFilter.EM_REQUEST_ATTRIBUTE);
// Here we're passing the EM that was created by the EntityManagerFilter (see JerseyConfig)
ctx.setEntityManager(new EntityManagerWrapper(em));

View File

@ -1,11 +1,10 @@
package org.baeldung.examples.olingo2;
package com.baeldung.examples.olingo2;
import java.io.IOException;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.Path;

View File

@ -1,8 +1,7 @@
package org.baeldung.examples.olingo2;
package com.baeldung.examples.olingo2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
@SpringBootApplication

View File

@ -1,4 +1,4 @@
package org.baeldung.examples.olingo2.domain;
package com.baeldung.examples.olingo2.domain;
import java.util.List;

View File

@ -1,4 +1,4 @@
package org.baeldung.examples.olingo2.domain;
package com.baeldung.examples.olingo2.domain;
import javax.persistence.Entity;
import javax.persistence.FetchType;

View File

@ -1,4 +1,4 @@
package org.baeldung.examples.olingo2;
package com.baeldung.examples.olingo2;
import org.junit.Test;
import org.junit.runner.RunWith;

View File

@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.baeldung.pmd</groupId>
<groupId>com.baeldung.pmd</groupId>
<artifactId>custom-pmd</artifactId>
<version>0.0.1</version>
<name>custom-pmd</name>

View File

@ -1,4 +1,4 @@
package org.baeldung.pmd;
package com.baeldung.pmd;
import net.sourceforge.pmd.lang.java.ast.ASTClassOrInterfaceDeclaration;
import net.sourceforge.pmd.lang.java.rule.AbstractJavaRule;

View File

@ -1,8 +1,8 @@
package org.baeldung.grpc.client;
package com.baeldung.grpc.client;
import org.baeldung.grpc.HelloRequest;
import org.baeldung.grpc.HelloResponse;
import org.baeldung.grpc.HelloServiceGrpc;
import com.baeldung.grpc.HelloRequest;
import com.baeldung.grpc.HelloResponse;
import com.baeldung.grpc.HelloServiceGrpc;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;

View File

@ -1,4 +1,4 @@
package org.baeldung.grpc.server;
package com.baeldung.grpc.server;
import java.io.IOException;

View File

@ -1,8 +1,8 @@
package org.baeldung.grpc.server;
package com.baeldung.grpc.server;
import org.baeldung.grpc.HelloRequest;
import org.baeldung.grpc.HelloResponse;
import org.baeldung.grpc.HelloServiceGrpc.HelloServiceImplBase;
import com.baeldung.grpc.HelloRequest;
import com.baeldung.grpc.HelloResponse;
import com.baeldung.grpc.HelloServiceGrpc.HelloServiceImplBase;
import io.grpc.stub.StreamObserver;

View File

@ -1,6 +1,6 @@
syntax = "proto3";
option java_multiple_files = true;
package org.baeldung.grpc;
package com.baeldung.grpc;
message HelloRequest {
string firstName = 1;

View File

@ -1,4 +1,4 @@
package org.baeldung.guava;
package com.baeldung.guava;
import com.google.common.base.Function;

View File

@ -1,4 +1,4 @@
package org.baeldung.guava;
package com.baeldung.guava;
import com.google.common.base.Function;
import org.junit.Test;

View File

@ -1,4 +1,4 @@
package org.baeldung.guava;
package com.baeldung.guava;
import com.google.common.collect.HashMultiset;
import com.google.common.collect.Multiset;

View File

@ -1,4 +1,4 @@
package org.baeldung.guava;
package com.baeldung.guava;
import com.google.common.collect.ImmutableRangeSet;
import com.google.common.collect.Range;

View File

@ -1,4 +1,4 @@
package org.baeldung.guava;
package com.baeldung.guava;
import com.google.common.base.Function;
import com.google.common.base.Joiner;

View File

@ -1,4 +1,4 @@
package org.baeldung.guava;
package com.baeldung.guava;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;

View File

@ -1,4 +1,4 @@
package org.baeldung.guava;
package com.baeldung.guava;
import static org.hamcrest.Matchers.contains;
import static org.junit.Assert.assertEquals;

View File

@ -1,4 +1,4 @@
package org.baeldung.java.io.remote;
package com.baeldung.java.io.remote;
import java.io.IOException;

View File

@ -19,8 +19,8 @@ public class MyCustomRule implements EnforcerRule {
String groupId = (String) enforcerRuleHelper.evaluate("${project.groupId}");
if (groupId == null || !groupId.startsWith("org.baeldung")) {
throw new EnforcerRuleException("Project group id does not start with org.baeldung");
if (groupId == null || !groupId.startsWith("com.baeldung")) {
throw new EnforcerRuleException("Project group id does not start with com.baeldung");
}
}

View File

@ -1,4 +1,4 @@
package org.baeldung.tensorflow;
package com.baeldung.tensorflow;
import org.tensorflow.DataType;
import org.tensorflow.Graph;

View File

@ -1,4 +1,4 @@
package org.baeldung.tensorflow;
package com.baeldung.tensorflow;
import org.tensorflow.SavedModelBundle;
import org.tensorflow.Tensor;

View File

@ -1,4 +1,4 @@
package org.baeldung.tensorflow;
package com.baeldung.tensorflow;
import static org.junit.jupiter.api.Assertions.assertEquals;