Skip to content

Commit 025d81c

Browse files
committed
Add missing copyright headers
Autoported commit. Original commit hash: [59c101940]
1 parent 091dabd commit 025d81c

File tree

4 files changed

+76
-10
lines changed

4 files changed

+76
-10
lines changed

itext.tests/itext.forms.tests/itext/forms/fields/FormsMetaInfoStaticContainerTest.cs

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
This file is part of the iText (R) project.
3+
Copyright (c) 1998-2022 iText Group NV
4+
Authors: iText Software.
5+
6+
This program is offered under a commercial and under the AGPL license.
7+
For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below.
8+
9+
AGPL licensing:
10+
This program is free software: you can redistribute it and/or modify
11+
it under the terms of the GNU Affero General Public License as published by
12+
the Free Software Foundation, either version 3 of the License, or
13+
(at your option) any later version.
14+
15+
This program is distributed in the hope that it will be useful,
16+
but WITHOUT ANY WARRANTY; without even the implied warranty of
17+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
GNU Affero General Public License for more details.
19+
20+
You should have received a copy of the GNU Affero General Public License
21+
along with this program. If not, see <https://www.gnu.org/licenses/>.
22+
*/
123
using System;
224
using System.Threading;
325
using iText.Commons.Actions.Contexts;
@@ -8,8 +30,8 @@ namespace iText.Forms.Fields {
830
public class FormsMetaInfoStaticContainerTest : ExtendedITextTest {
931
[NUnit.Framework.Test]
1032
public virtual void UseMetaInfoDuringTheActionOneThreadTest() {
11-
MetaInfoContainer metaInfo1 = new MetaInfoContainer(new _IMetaInfo_16());
12-
MetaInfoContainer metaInfo2 = new MetaInfoContainer(new _IMetaInfo_17());
33+
MetaInfoContainer metaInfo1 = new MetaInfoContainer(new _IMetaInfo_38());
34+
MetaInfoContainer metaInfo2 = new MetaInfoContainer(new _IMetaInfo_39());
1335
FormsMetaInfoStaticContainer.UseMetaInfoDuringTheAction(metaInfo1, () => {
1436
NUnit.Framework.Assert.AreSame(metaInfo1, FormsMetaInfoStaticContainer.GetMetaInfoForLayout());
1537
FormsMetaInfoStaticContainer.UseMetaInfoDuringTheAction(metaInfo2, () => NUnit.Framework.Assert.AreSame(metaInfo2
@@ -20,13 +42,13 @@ public virtual void UseMetaInfoDuringTheActionOneThreadTest() {
2042
NUnit.Framework.Assert.IsNull(FormsMetaInfoStaticContainer.GetMetaInfoForLayout());
2143
}
2244

23-
private sealed class _IMetaInfo_16 : IMetaInfo {
24-
public _IMetaInfo_16() {
45+
private sealed class _IMetaInfo_38 : IMetaInfo {
46+
public _IMetaInfo_38() {
2547
}
2648
}
2749

28-
private sealed class _IMetaInfo_17 : IMetaInfo {
29-
public _IMetaInfo_17() {
50+
private sealed class _IMetaInfo_39 : IMetaInfo {
51+
public _IMetaInfo_39() {
3052
}
3153
}
3254

@@ -56,7 +78,7 @@ public MetaInfoCheckClass(FormsMetaInfoStaticContainerTest.MetaInfoCheckClass me
5678
}
5779

5880
public virtual void CheckMetaInfo() {
59-
MetaInfoContainer metaInfo = new MetaInfoContainer(new _IMetaInfo_56());
81+
MetaInfoContainer metaInfo = new MetaInfoContainer(new _IMetaInfo_78());
6082
FormsMetaInfoStaticContainer.UseMetaInfoDuringTheAction(metaInfo, () => {
6183
if (metaInfoCheckClass != null) {
6284
Thread thread = new Thread(() => metaInfoCheckClass.CheckMetaInfo());
@@ -74,8 +96,8 @@ public virtual void CheckMetaInfo() {
7496
checkFailed |= FormsMetaInfoStaticContainer.GetMetaInfoForLayout() != null;
7597
}
7698

77-
private sealed class _IMetaInfo_56 : IMetaInfo {
78-
public _IMetaInfo_56() {
99+
private sealed class _IMetaInfo_78 : IMetaInfo {
100+
public _IMetaInfo_78() {
79101
}
80102
}
81103

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
This file is part of the iText (R) project.
3+
Copyright (c) 1998-2022 iText Group NV
4+
Authors: iText Software.
5+
6+
This program is offered under a commercial and under the AGPL license.
7+
For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below.
8+
9+
AGPL licensing:
10+
This program is free software: you can redistribute it and/or modify
11+
it under the terms of the GNU Affero General Public License as published by
12+
the Free Software Foundation, either version 3 of the License, or
13+
(at your option) any later version.
14+
15+
This program is distributed in the hope that it will be useful,
16+
but WITHOUT ANY WARRANTY; without even the implied warranty of
17+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
GNU Affero General Public License for more details.
19+
20+
You should have received a copy of the GNU Affero General Public License
21+
along with this program. If not, see <https://www.gnu.org/licenses/>.
22+
*/
123
namespace iText.Commons.Utils {
224
public delegate void Action();
325
}

itext/itext.forms/itext/forms/fields/FormsMetaInfoStaticContainer.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
This file is part of the iText (R) project.
3+
Copyright (c) 1998-2022 iText Group NV
4+
Authors: iText Software.
5+
6+
This program is offered under a commercial and under the AGPL license.
7+
For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below.
8+
9+
AGPL licensing:
10+
This program is free software: you can redistribute it and/or modify
11+
it under the terms of the GNU Affero General Public License as published by
12+
the Free Software Foundation, either version 3 of the License, or
13+
(at your option) any later version.
14+
15+
This program is distributed in the hope that it will be useful,
16+
but WITHOUT ANY WARRANTY; without even the implied warranty of
17+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
GNU Affero General Public License for more details.
19+
20+
You should have received a copy of the GNU Affero General Public License
21+
along with this program. If not, see <https://www.gnu.org/licenses/>.
22+
*/
123
using System.Threading;
224
using iText.Commons.Utils;
325
using iText.Layout.Renderer;

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c715df234a8bc2d9cffa6537d53da43e1bbd1d49
1+
59c1019401927b99d6df9adeb37a678be1702501

0 commit comments

Comments
 (0)