Repository: incubator-gobblin Updated Branches: refs/heads/master 32ca21a5c -> c101493f8
http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/c101493f/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/LimiterFactory.java ---------------------------------------------------------------------- diff --git a/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/LimiterFactory.java b/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/LimiterFactory.java index b17381b..a2ed78e 100644 --- a/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/LimiterFactory.java +++ b/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/LimiterFactory.java @@ -6,7 +6,7 @@ * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -14,7 +14,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.apache.gobblin.util.limiter; import com.typesafe.config.Config; http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/c101493f/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/MultiLimiter.java ---------------------------------------------------------------------- diff --git a/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/MultiLimiter.java b/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/MultiLimiter.java index 5c88ca6..91d52a4 100644 --- a/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/MultiLimiter.java +++ b/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/MultiLimiter.java @@ -6,7 +6,7 @@ * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -14,7 +14,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.apache.gobblin.util.limiter; import java.io.Closeable; http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/c101493f/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/NoopLimiter.java ---------------------------------------------------------------------- diff --git a/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/NoopLimiter.java b/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/NoopLimiter.java index 4eed19b..4c37544 100644 --- a/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/NoopLimiter.java +++ b/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/NoopLimiter.java @@ -6,7 +6,7 @@ * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -14,7 +14,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.apache.gobblin.util.limiter; import java.io.Closeable; http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/c101493f/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/broker/SharedLimiterFactory.java ---------------------------------------------------------------------- diff --git a/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/broker/SharedLimiterFactory.java b/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/broker/SharedLimiterFactory.java index 8a029c1..6f398c6 100644 --- a/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/broker/SharedLimiterFactory.java +++ b/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/broker/SharedLimiterFactory.java @@ -6,7 +6,7 @@ * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -14,7 +14,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.apache.gobblin.util.limiter.broker; import java.util.Collection; http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/c101493f/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/broker/SharedLimiterKey.java ---------------------------------------------------------------------- diff --git a/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/broker/SharedLimiterKey.java b/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/broker/SharedLimiterKey.java index 04e9a6a..34bc9c8 100644 --- a/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/broker/SharedLimiterKey.java +++ b/gobblin-utility/src/main/java/org/apache/gobblin/util/limiter/broker/SharedLimiterKey.java @@ -6,7 +6,7 @@ * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -14,7 +14,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.apache.gobblin.util.limiter.broker; import org.apache.gobblin.broker.iface.SharedResourceKey; http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/c101493f/gobblin-utility/src/test/java/org/apache/gobblin/util/PortUtilsTest.java ---------------------------------------------------------------------- diff --git a/gobblin-utility/src/test/java/org/apache/gobblin/util/PortUtilsTest.java b/gobblin-utility/src/test/java/org/apache/gobblin/util/PortUtilsTest.java index b1daf48..0721f1f 100644 --- a/gobblin-utility/src/test/java/org/apache/gobblin/util/PortUtilsTest.java +++ b/gobblin-utility/src/test/java/org/apache/gobblin/util/PortUtilsTest.java @@ -1,15 +1,19 @@ /* - * Copyright (C) 2014-2016 LinkedIn Corp. All rights reserved. + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use - * this file except in compliance with the License. You may obtain a copy of the - * License at http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed - * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR - * CONDITIONS OF ANY KIND, either express or implied. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ - package org.apache.gobblin.util; import org.mockito.Mockito; http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/c101493f/gobblin-utility/src/test/java/org/apache/gobblin/util/limiter/MultiLimiterTest.java ---------------------------------------------------------------------- diff --git a/gobblin-utility/src/test/java/org/apache/gobblin/util/limiter/MultiLimiterTest.java b/gobblin-utility/src/test/java/org/apache/gobblin/util/limiter/MultiLimiterTest.java index eaacf52..f23503b 100644 --- a/gobblin-utility/src/test/java/org/apache/gobblin/util/limiter/MultiLimiterTest.java +++ b/gobblin-utility/src/test/java/org/apache/gobblin/util/limiter/MultiLimiterTest.java @@ -6,7 +6,7 @@ * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/c101493f/gobblin-utility/src/test/java/org/apache/gobblin/util/limiter/broker/SharedLimiterFactoryTest.java ---------------------------------------------------------------------- diff --git a/gobblin-utility/src/test/java/org/apache/gobblin/util/limiter/broker/SharedLimiterFactoryTest.java b/gobblin-utility/src/test/java/org/apache/gobblin/util/limiter/broker/SharedLimiterFactoryTest.java index 9f4b23d..8a1ea85 100644 --- a/gobblin-utility/src/test/java/org/apache/gobblin/util/limiter/broker/SharedLimiterFactoryTest.java +++ b/gobblin-utility/src/test/java/org/apache/gobblin/util/limiter/broker/SharedLimiterFactoryTest.java @@ -6,7 +6,7 @@ * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/c101493f/gradle/scripts/testSetup.gradle ---------------------------------------------------------------------- diff --git a/gradle/scripts/testSetup.gradle b/gradle/scripts/testSetup.gradle index 1bbc1ad..be0c3cb 100644 --- a/gradle/scripts/testSetup.gradle +++ b/gradle/scripts/testSetup.gradle @@ -18,6 +18,7 @@ subprojects { plugins.withType(JavaPlugin) { plugins.apply('findbugs') + plugins.apply('checkstyle') test { if (project.hasProperty("printTestOutput")) { @@ -49,6 +50,10 @@ subprojects { // The exclude filter file must be under "ligradle/findbugs/" for internal compatibility with ligradle FindBugs excludeFilter = file(rootProject.projectDir.path + "/ligradle/findbugs/findbugsExclude.xml") } + checkstyle { + toolVersion = '7.6.1' + configFile = rootProject.file('config/checkstyle/checkstyle.xml') + } } tasks.withType(FindBugs) {
