source: josm/trunk/src/org/openstreetmap/josm/data/osm/DataSource.java@ 2555

Last change on this file since 2555 was 2013, checked in by stoecker, 15 years ago

fix #3341 - NPE

  • Property svn:eol-style set to native
File size: 597 bytes
Line 
1// License: GPL. Copyright 2007 by Immanuel Scholz and others
2package org.openstreetmap.josm.data.osm;
3
4import org.openstreetmap.josm.data.Bounds;
5
6public class DataSource implements Cloneable {
7 public final Bounds bounds;
8 public final String origin;
9
10 public DataSource(Bounds bounds, String origin) {
11 this.bounds = bounds;
12 this.origin = origin;
13 if (bounds == null) {
14 throw new NullPointerException();
15 }
16 }
17
18 @Override protected Object clone() throws CloneNotSupportedException {
19 return new DataSource(bounds, origin);
20 }
21}
Note: See TracBrowser for help on using the repository browser.