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

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

fix #3341 - NPE

  • Property svn:eol-style set to native
File size: 597 bytes
RevLine 
[298]1// License: GPL. Copyright 2007 by Immanuel Scholz and others
[247]2package org.openstreetmap.josm.data.osm;
3
4import org.openstreetmap.josm.data.Bounds;
5
[290]6public class DataSource implements Cloneable {
[1169]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;
[2013]13 if (bounds == null) {
14 throw new NullPointerException();
15 }
[290]16 }
17
[1169]18 @Override protected Object clone() throws CloneNotSupportedException {
19 return new DataSource(bounds, origin);
[290]20 }
[247]21}
Note: See TracBrowser for help on using the repository browser.