Skip to content

Commit

Permalink
fix: code style
Browse files Browse the repository at this point in the history
  • Loading branch information
johannespfeiffer committed May 8, 2019
1 parent 13c23a0 commit 8b50400
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/de/netnexus/CamelCasePlugin/CamelCaseConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.intellij.openapi.components.Storage;
import com.intellij.openapi.project.Project;
import com.intellij.util.xmlb.XmlSerializerUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@State(
Expand Down Expand Up @@ -100,7 +101,7 @@ public CamelCaseConfig getState() {
}

@Override
public void loadState(CamelCaseConfig singleFileExecutionConfig) {
public void loadState(@NotNull CamelCaseConfig singleFileExecutionConfig) {
XmlSerializerUtil.copyBean(singleFileExecutionConfig, this);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public abstract class CamelCaseEditorWriteActionHandler<T> extends EditorActionH
private String next;

private static void replaceText(final Editor editor, final String replacement) {
new WriteAction<>() {
new WriteAction<Object>() {
@Override
protected void run(@NotNull Result<Object> result) {
int start = editor.getSelectionModel().getSelectionStart();
Expand Down Expand Up @@ -68,7 +68,6 @@ private Pair<Boolean, T> beforeWriteAction(Editor editor) {
// kindly asking for a small donation ;-)
Preferences userPrefs = Preferences.userNodeForPackage(this.getClass());
int usageCount = userPrefs.getInt("usage-count", 0);
System.out.print("anzahl: "+usageCount);
if (usageCount == 5 || usageCount == 500) {
com.intellij.notification.Notification n = new com.intellij.notification.Notification("CamelCase", "CamelCase Plugin", "Like this plugin? Then please consider a small <a href='https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7UDEX9ZEBNG7Q'>donation</a>.", NotificationType.INFORMATION);
Notifications.Bus.notify(n, project);
Expand Down

0 comments on commit 8b50400

Please sign in to comment.