You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2022/12/25 20:00:37 UTC

[streampipes] 05/06: add checkstyle to streampipes-sources

This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch chore/add-checkstyle
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 5e199c7776650cb1300da91f6a46ba126afc3990
Author: bossenti <bo...@posteo.de>
AuthorDate: Sun Dec 25 20:58:43 2022 +0100

    add checkstyle to streampipes-sources
---
 streampipes-sources/pom.xml                        | 41 +++++++++++++---------
 .../sources/AbstractAlreadyExistingStream.java     | 26 +++++++-------
 2 files changed, 38 insertions(+), 29 deletions(-)

diff --git a/streampipes-sources/pom.xml b/streampipes-sources/pom.xml
index 1887601b3..e36fba102 100644
--- a/streampipes-sources/pom.xml
+++ b/streampipes-sources/pom.xml
@@ -16,22 +16,31 @@
   ~
   -->
 
-<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>
-	<parent>
-		<groupId>org.apache.streampipes</groupId>
-		<artifactId>streampipes-parent</artifactId>
-		<version>0.91.0-SNAPSHOT</version>
-	</parent>
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
+         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>
+    <parent>
+        <groupId>org.apache.streampipes</groupId>
+        <artifactId>streampipes-parent</artifactId>
+        <version>0.91.0-SNAPSHOT</version>
+    </parent>
 
-	<artifactId>streampipes-sources</artifactId>
+    <artifactId>streampipes-sources</artifactId>
 
-	<dependencies>
-		<!-- StreamPipes dependencies -->
-		<dependency>
-			<groupId>org.apache.streampipes</groupId>
-			<artifactId>streampipes-container</artifactId>
-			<version>0.91.0-SNAPSHOT</version>
-		</dependency>
-	</dependencies>
+    <dependencies>
+        <!-- StreamPipes dependencies -->
+        <dependency>
+            <groupId>org.apache.streampipes</groupId>
+            <artifactId>streampipes-container</artifactId>
+            <version>0.91.0-SNAPSHOT</version>
+        </dependency>
+    </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-checkstyle-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
 </project>
\ No newline at end of file
diff --git a/streampipes-sources/src/main/java/org/apache/streampipes/sources/AbstractAlreadyExistingStream.java b/streampipes-sources/src/main/java/org/apache/streampipes/sources/AbstractAlreadyExistingStream.java
index 6538ee380..0b05cc3d7 100644
--- a/streampipes-sources/src/main/java/org/apache/streampipes/sources/AbstractAlreadyExistingStream.java
+++ b/streampipes-sources/src/main/java/org/apache/streampipes/sources/AbstractAlreadyExistingStream.java
@@ -25,17 +25,17 @@ import org.apache.streampipes.container.init.DeclarersSingleton;
 
 public abstract class AbstractAlreadyExistingStream implements DataStreamDeclarer {
 
-	@Override
-	public void executeStream() {		
-	
-	}
-
-	@Override
-	public boolean isExecutable() {
-		return false;
-	}
-
-	public ConfigExtractor configExtractor() {
-		return ConfigExtractor.from(DeclarersSingleton.getInstance().getServiceDefinition().getServiceGroup());
-	}
+  @Override
+  public void executeStream() {
+
+  }
+
+  @Override
+  public boolean isExecutable() {
+    return false;
+  }
+
+  public ConfigExtractor configExtractor() {
+    return ConfigExtractor.from(DeclarersSingleton.getInstance().getServiceDefinition().getServiceGroup());
+  }
 }