Skip to content

Commit b78b5b3

Browse files
Egor MartsynkovskyiText-CI
authored andcommitted
Change order of constructors
Minor changes in test function DEVSIX-5705 Autoported commit. Original commit hash: [c4ff48d5d]
1 parent 86f03ca commit b78b5b3

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

itext.tests/itext.kernel.tests/itext/kernel/pdf/PdfReaderTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ public virtual void NotCloseUserStreamTest() {
18381838
}
18391839
}
18401840

1841-
private FileInfo CopyFileForTest(String fileName, String copiedFileName) {
1841+
private static FileInfo CopyFileForTest(String fileName, String copiedFileName) {
18421842
FileInfo copiedFile = new FileInfo(copiedFileName);
18431843
File.Copy(System.IO.Path.Combine(fileName), System.IO.Path.Combine(copiedFileName));
18441844
return copiedFile;

itext/itext.kernel/itext/kernel/pdf/PdfReader.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,6 @@ public class PdfReader : IDisposable {
118118

119119
protected internal bool xrefStm = false;
120120

121-
internal PdfReader(IRandomAccessSource byteSource, ReaderProperties properties, bool closeStream) {
122-
this.properties = properties;
123-
this.tokens = GetOffsetTokeniser(byteSource, closeStream);
124-
}
125-
126121
/// <summary>Constructs a new PdfReader.</summary>
127122
/// <param name="byteSource">source of bytes for the reader</param>
128123
/// <param name="properties">properties of the created reader</param>
@@ -179,6 +174,11 @@ public PdfReader(String filename)
179174
: this(filename, new ReaderProperties()) {
180175
}
181176

177+
internal PdfReader(IRandomAccessSource byteSource, ReaderProperties properties, bool closeStream) {
178+
this.properties = properties;
179+
this.tokens = GetOffsetTokeniser(byteSource, closeStream);
180+
}
181+
182182
/// <summary>
183183
/// Close
184184
/// <see cref="iText.IO.Source.PdfTokenizer"/>.

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
340d769934219369c5f8045fc6244da867d37c68
1+
c4ff48d5d7151965da5506b1119923fbab84db5b

0 commit comments

Comments
 (0)