Skip to content
Snippets Groups Projects
Commit fdba4357 authored by Nils Christian Ehmke's avatar Nils Christian Ehmke
Browse files

Checkstyle issues

parent e9b6764b
No related branches found
No related tags found
No related merge requests found
Showing
with 137 additions and 26 deletions
......@@ -35,7 +35,7 @@ public abstract class AbstractExecution<T extends AbstractExecution<T>> {
this.operation = operation;
}
public int getTraceDepth() {
public final int getTraceDepth() {
int traceDepth = this.children.isEmpty() ? 0 : 1;
int maxChildrenTraceDepth = 0;
......@@ -47,7 +47,7 @@ public abstract class AbstractExecution<T extends AbstractExecution<T>> {
return traceDepth;
}
public int getTraceSize() {
public final int getTraceSize() {
int traceSize = 1;
for (final T child : this.children) {
......@@ -56,11 +56,11 @@ public abstract class AbstractExecution<T extends AbstractExecution<T>> {
return traceSize;
}
public boolean isFailed() {
public final boolean isFailed() {
return (this.failedCause != null);
}
public boolean containsFailure() {
public final boolean containsFailure() {
if (this.isFailed()) {
return true;
}
......@@ -74,36 +74,36 @@ public abstract class AbstractExecution<T extends AbstractExecution<T>> {
return false;
}
public String getFailedCause() {
public final String getFailedCause() {
return this.failedCause;
}
public void setFailedCause(final String failedCause) {
public final void setFailedCause(final String failedCause) {
this.failedCause = failedCause;
}
public String getContainer() {
public final String getContainer() {
return this.container;
}
public String getComponent() {
public final String getComponent() {
return this.component;
}
public String getOperation() {
public final String getOperation() {
return this.operation;
}
public List<T> getChildren() {
public final List<T> getChildren() {
return this.children;
}
public void addExecutionEntry(final T entry) {
public final void addExecutionEntry(final T entry) {
this.children.add(entry);
entry.parent = (T) this;
}
public T getParent() {
public final T getParent() {
return this.parent;
}
......
/***************************************************************************
* Copyright 2014 Kieker Project (http://kieker-monitoring.net)
*
* 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
*
* 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 kieker.gui.common.model.importer.stages;
import java.io.File;
......
/***************************************************************************
* Copyright 2014 Kieker Project (http://kieker-monitoring.net)
*
* 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
*
* 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 kieker.gui.common.model.importer.stages;
import java.util.List;
......
......@@ -21,7 +21,7 @@ import kieker.gui.subview.util.AbstractDirectedComparator;
import org.eclipse.swt.SWT;
public class AggregatedExecutionAvgDurationComparator extends AbstractDirectedComparator<AggregatedExecution> {
public final class AggregatedExecutionAvgDurationComparator extends AbstractDirectedComparator<AggregatedExecution> {
private static final long serialVersionUID = 1L;
......
......@@ -21,7 +21,7 @@ import kieker.gui.subview.util.AbstractDirectedComparator;
import org.eclipse.swt.SWT;
public class AggregatedExecutionCallComparator extends AbstractDirectedComparator<AggregatedExecution> {
public final class AggregatedExecutionCallComparator extends AbstractDirectedComparator<AggregatedExecution> {
private static final long serialVersionUID = 1L;
......
......@@ -21,7 +21,7 @@ import kieker.gui.subview.util.AbstractDirectedComparator;
import org.eclipse.swt.SWT;
public class AggregatedExecutionMaxDurationComparator extends AbstractDirectedComparator<AggregatedExecution> {
public final class AggregatedExecutionMaxDurationComparator extends AbstractDirectedComparator<AggregatedExecution> {
private static final long serialVersionUID = 1L;
......
......@@ -21,7 +21,7 @@ import kieker.gui.subview.util.AbstractDirectedComparator;
import org.eclipse.swt.SWT;
public class AggregatedExecutionMinDurationComparator extends AbstractDirectedComparator<AggregatedExecution> {
public final class AggregatedExecutionMinDurationComparator extends AbstractDirectedComparator<AggregatedExecution> {
private static final long serialVersionUID = 1L;
......
/***************************************************************************
* Copyright 2014 Kieker Project (http://kieker-monitoring.net)
*
* 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
*
* 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 kieker.gui.subview.aggregatedtraces.util;
import kieker.gui.common.domain.AggregatedExecution;
......@@ -5,7 +21,7 @@ import kieker.gui.subview.util.AbstractDirectedComparator;
import org.eclipse.swt.SWT;
public class AggregatedExecutionTotalDurationComparator extends AbstractDirectedComparator<AggregatedExecution> {
public final class AggregatedExecutionTotalDurationComparator extends AbstractDirectedComparator<AggregatedExecution> {
private static final long serialVersionUID = 1L;
......
......@@ -47,7 +47,7 @@ import org.eclipse.swt.widgets.TreeColumn;
import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.wb.swt.SWTResourceManager;
public class View implements Observer, ISubView {
public final class View implements Observer, ISubView {
private final IModel<Execution> model;
private final Model tracesSubViewModel;
......
......@@ -21,7 +21,7 @@ import kieker.gui.subview.util.AbstractDirectedComparator;
import org.eclipse.swt.SWT;
public class ExecutionDurationComparator extends AbstractDirectedComparator<Execution> {
public final class ExecutionDurationComparator extends AbstractDirectedComparator<Execution> {
private static final long serialVersionUID = 1L;
......
......@@ -21,7 +21,7 @@ import kieker.gui.subview.util.AbstractDirectedComparator;
import org.eclipse.swt.SWT;
public class ExecutionTraceIDComparator extends AbstractDirectedComparator<Execution> {
public final class ExecutionTraceIDComparator extends AbstractDirectedComparator<Execution> {
private static final long serialVersionUID = 1L;
......
/***************************************************************************
* Copyright 2014 Kieker Project (http://kieker-monitoring.net)
*
* 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
*
* 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 kieker.gui.subview.util;
import java.util.Observable;
......
......@@ -20,7 +20,7 @@ import kieker.gui.common.domain.AbstractExecution;
import org.eclipse.swt.SWT;
public class ExecutionComponentComparator extends AbstractDirectedComparator<AbstractExecution<?>> {
public final class ExecutionComponentComparator extends AbstractDirectedComparator<AbstractExecution<?>> {
private static final long serialVersionUID = 1L;
......
......@@ -20,7 +20,7 @@ import kieker.gui.common.domain.AbstractExecution;
import org.eclipse.swt.SWT;
public class ExecutionContainerComparator extends AbstractDirectedComparator<AbstractExecution<?>> {
public final class ExecutionContainerComparator extends AbstractDirectedComparator<AbstractExecution<?>> {
private static final long serialVersionUID = 1L;
......
......@@ -20,7 +20,7 @@ import kieker.gui.common.domain.AbstractExecution;
import org.eclipse.swt.SWT;
public class ExecutionOperationComparator extends AbstractDirectedComparator<AbstractExecution<?>> {
public final class ExecutionOperationComparator extends AbstractDirectedComparator<AbstractExecution<?>> {
private static final long serialVersionUID = 1L;
......
/***************************************************************************
* Copyright 2014 Kieker Project (http://kieker-monitoring.net)
*
* 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
*
* 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 kieker.gui.subview.util;
import java.util.List;
......
/***************************************************************************
* Copyright 2014 Kieker Project (http://kieker-monitoring.net)
*
* 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
*
* 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 kieker.gui.common.model.importer;
import static org.hamcrest.Matchers.empty;
......@@ -12,7 +28,7 @@ import org.junit.Test;
import teetime.framework.Analysis;
public class ImportAnalysisConfigurationTest {
public final class ImportAnalysisConfigurationTest {
@Test
public void exampleLogImportShouldWork() {
......
/***************************************************************************
* Copyright 2014 Kieker Project (http://kieker-monitoring.net)
*
* 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
*
* 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 kieker.gui.common.model.importer.stages;
import static org.hamcrest.Matchers.hasSize;
......@@ -13,7 +29,6 @@ import kieker.common.record.flow.trace.operation.AfterOperationEvent;
import kieker.common.record.flow.trace.operation.AfterOperationFailedEvent;
import kieker.common.record.flow.trace.operation.BeforeOperationEvent;
import kieker.gui.common.domain.Execution;
import kieker.gui.common.model.importer.stages.TraceReconstructor;
import org.junit.Before;
import org.junit.Test;
......@@ -22,7 +37,7 @@ import teetime.framework.pipe.IPipeFactory;
import teetime.framework.pipe.SingleElementPipeFactory;
import teetime.stage.CollectorSink;
public class TraceReconstructorTest {
public final class TraceReconstructorTest {
private List<Execution> traceCollectorList;
private TraceReconstructor reconstructorUnderTest;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment