From ca0b7757b42574a3551c2bf9af78469e06ce23c8 Mon Sep 17 00:00:00 2001 From: wenshao Date: Wed, 16 Nov 2011 13:48:20 +0800 Subject: [PATCH] add comments --- .../java/com/alibaba/druid/DruidException.java | 15 +++++++++++++++ .../com/alibaba/druid/DruidRuntimeException.java | 15 +++++++++++++++ .../druid/TransactionTimeoutException.java | 15 +++++++++++++++ .../java/com/alibaba/druid/util/Histogram.java | 15 +++++++++++++++ .../com/alibaba/druid/util/TransactionInfo.java | 15 +++++++++++++++ 5 files changed, 75 insertions(+) diff --git a/src/main/java/com/alibaba/druid/DruidException.java b/src/main/java/com/alibaba/druid/DruidException.java index 86a82c445c..050f437a7f 100644 --- a/src/main/java/com/alibaba/druid/DruidException.java +++ b/src/main/java/com/alibaba/druid/DruidException.java @@ -1,3 +1,18 @@ +/* + * Copyright 1999-2011 Alibaba Group Holding Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.alibaba.druid; public class DruidException extends Exception { diff --git a/src/main/java/com/alibaba/druid/DruidRuntimeException.java b/src/main/java/com/alibaba/druid/DruidRuntimeException.java index fc8dee5a43..71de191448 100644 --- a/src/main/java/com/alibaba/druid/DruidRuntimeException.java +++ b/src/main/java/com/alibaba/druid/DruidRuntimeException.java @@ -1,3 +1,18 @@ +/* + * Copyright 1999-2011 Alibaba Group Holding Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.alibaba.druid; public class DruidRuntimeException extends RuntimeException { diff --git a/src/main/java/com/alibaba/druid/TransactionTimeoutException.java b/src/main/java/com/alibaba/druid/TransactionTimeoutException.java index 6b03ec9df1..50146cba40 100644 --- a/src/main/java/com/alibaba/druid/TransactionTimeoutException.java +++ b/src/main/java/com/alibaba/druid/TransactionTimeoutException.java @@ -1,3 +1,18 @@ +/* + * Copyright 1999-2011 Alibaba Group Holding Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.alibaba.druid; import java.sql.SQLException; diff --git a/src/main/java/com/alibaba/druid/util/Histogram.java b/src/main/java/com/alibaba/druid/util/Histogram.java index d1084b311d..54a0f6409b 100644 --- a/src/main/java/com/alibaba/druid/util/Histogram.java +++ b/src/main/java/com/alibaba/druid/util/Histogram.java @@ -1,3 +1,18 @@ +/* + * Copyright 1999-2011 Alibaba Group Holding Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.alibaba.druid.util; import java.util.concurrent.TimeUnit; diff --git a/src/main/java/com/alibaba/druid/util/TransactionInfo.java b/src/main/java/com/alibaba/druid/util/TransactionInfo.java index a55a6f5b89..60f40d2ed4 100644 --- a/src/main/java/com/alibaba/druid/util/TransactionInfo.java +++ b/src/main/java/com/alibaba/druid/util/TransactionInfo.java @@ -1,3 +1,18 @@ +/* + * Copyright 1999-2011 Alibaba Group Holding Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.alibaba.druid.util; import java.util.ArrayList;