Ignore:
Timestamp:
11/22/11 19:30:07 (13 years ago)
Author:
masberg
Message:

Avoid use of deprecated assert. Use generics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.ui/src/org/modelica/mdt/ui/editor/ModelicaSourceViewer.java

    r491 r1112  
    2525import org.eclipse.swt.widgets.Display;
    2626
     27import org.eclipse.core.runtime.Assert;
    2728import org.eclipse.jface.preference.IPreferenceStore;
    2829import org.eclipse.jface.preference.PreferenceConverter;
     
    3031import org.eclipse.jface.util.PropertyChangeEvent;
    3132
    32 import org.eclipse.jface.text.Assert;
    3333import org.eclipse.jface.text.BadLocationException;
    3434import org.eclipse.jface.text.IDocument;
     
    394394
    395395        if (fTextPresentationListeners == null)
    396             fTextPresentationListeners= new ArrayList();
     396            fTextPresentationListeners= new ArrayList<ITextPresentationListener>();
    397397
    398398        fTextPresentationListeners.remove(listener);
     
    458458        ITypedRegion[] linePartitioning= TextUtilities.computePartitioning(document, IModelicaPartitions.MODELICA_PARTITIONING, lineOffset, line.getLength(), false);
    459459
    460         List segmentation= new ArrayList();
     460        List<ITypedRegion> segmentation= new ArrayList<ITypedRegion>();
    461461        for (int i= 0; i < linePartitioning.length; i++) {
    462462            if (IModelicaPartitions.MODELICA_STRING.equals(linePartitioning[i].getType()))
     
    473473        int j= 0;
    474474        for (int i= 0; i < size; i++) {
    475             ITypedRegion segment= (ITypedRegion) segmentation.get(i);
     475            ITypedRegion segment= segmentation.get(i);
    476476
    477477            if (i == 0)
Note: See TracChangeset for help on using the changeset viewer.