From cc73e7516650f6bb91ba760a26785c78cd9c0051 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Fri, 20 Nov 2009 12:19:06 +0300 Subject: [PATCH] cleanup --- .../openapi/ui/popup/LightweightWindowEvent.java | 3 +-- .../src/com/intellij/ui/BalloonLayout.java | 12 ++++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/platform/platform-api/src/com/intellij/openapi/ui/popup/LightweightWindowEvent.java b/platform/platform-api/src/com/intellij/openapi/ui/popup/LightweightWindowEvent.java index 6b286e4271ef..3ab784252411 100644 --- a/platform/platform-api/src/com/intellij/openapi/ui/popup/LightweightWindowEvent.java +++ b/platform/platform-api/src/com/intellij/openapi/ui/popup/LightweightWindowEvent.java @@ -16,8 +16,7 @@ package com.intellij.openapi.ui.popup; public class LightweightWindowEvent { - - private LightweightWindow myWindow; + private final LightweightWindow myWindow; public LightweightWindowEvent(LightweightWindow window) { myWindow = window; diff --git a/platform/platform-impl/src/com/intellij/ui/BalloonLayout.java b/platform/platform-impl/src/com/intellij/ui/BalloonLayout.java index eea81d2b9117..9d8cdddf10cd 100644 --- a/platform/platform-impl/src/com/intellij/ui/BalloonLayout.java +++ b/platform/platform-impl/src/com/intellij/ui/BalloonLayout.java @@ -30,13 +30,13 @@ import java.util.List; public class BalloonLayout { - private JLayeredPane myParent; - private Insets myInsets; + private final JLayeredPane myParent; + private final Insets myInsets; - private List myBalloons = new ArrayList(); + private final List myBalloons = new ArrayList(); - private Alarm myRelayoutAlarm = new Alarm(); - private Runnable myRelayoutRunnable = new Runnable() { + private final Alarm myRelayoutAlarm = new Alarm(); + private final Runnable myRelayoutRunnable = new Runnable() { public void run() { relayout(); } @@ -102,7 +102,7 @@ public class BalloonLayout { - private List computeWidths(List> columns) { + private static List computeWidths(List> columns) { List columnWidths = new ArrayList(); for (ArrayList eachColumn : columns) { int maxWidth = 0;