Fix PMD violations #327

This commit is contained in:
Ilkka Seppala
2015-12-27 21:21:57 +02:00
parent df911baf36
commit 5f033be54f
94 changed files with 92 additions and 319 deletions

View File

@ -9,53 +9,53 @@ public interface FileSelectorView {
/**
* Opens the view.
*/
public void open();
void open();
/**
* Closes the view.
*/
public void close();
void close();
/**
* @return True, if the view is opened, false otherwise.
*/
public boolean isOpened();
boolean isOpened();
/**
* Sets the presenter component, to the one given as parameter.
*
* @param presenter The new presenter component.
*/
public void setPresenter(FileSelectorPresenter presenter);
void setPresenter(FileSelectorPresenter presenter);
/**
* @return The presenter Component.
*/
public FileSelectorPresenter getPresenter();
FileSelectorPresenter getPresenter();
/**
* Sets the file's name, to the value given as parameter.
*
* @param name The new name of the file.
*/
public void setFileName(String name);
void setFileName(String name);
/**
* @return The name of the file.
*/
public String getFileName();
String getFileName();
/**
* Displays a message to the users.
*
* @param message The message to be displayed.
*/
public void showMessage(String message);
void showMessage(String message);
/**
* Displays the data to the view.
*
* @param data The data to be written.
*/
public void displayData(String data);
void displayData(String data);
}

View File

@ -2,10 +2,7 @@ package com.iluwatar.model.view.presenter;
import org.junit.Test;
import java.io.FileNotFoundException;
import java.io.IOException;
import static org.junit.Assert.*;
import static org.junit.Assert.assertNull;
/**
* Date: 12/21/15 - 12:12 PM